feat(init) display peer id in init command
use case: Just configured and installed a node. benefits: 1) reduces friction when setting up a new node 2) reveals useful details about the workings of the system. It's the user's first encounter with her node's identity. The tour can build on the user's knowledge. ``` ipfs (maybebtc-november) λ. ipfs init -f initializing ipfs node at /Users/btc/.go-ipfs generating key pair peer identity: QmcRbn41Vc2CvbpLYfN36mAWusErKWvAAHbq92LPra2gFT ```
Brian Tiger Chow committed
Nov 3, 2014 at 22:44 UTC
67bc9cc89dda5e03c7dba1beb42a7216d5dea94c
1 file changed
+1
cmd/ipfs/init.go
+1
@@ -125,6 +125,7 @@ func initCmd(c *commander.Command, inp []string) error {
125
return err
126
}
127
cfg.Identity.PeerID = id.Pretty()
128
+ u.POut("peer identity: %s\n", id.Pretty())
129
130
// Use these hardcoded bootstrap peers for now.
131
cfg.Bootstrap = []*config.BootstrapPeer{