@cryptotaxi247 / kubo / commits / 72a5902e1

address concerns from PR

Jeromy committed Jan 27, 2015 at 02:17 UTC 72a5902e1264d0305231c2fa53ab1a6432899111
2 files changed +14 -3
core/commands/id.go
+6
@@ -41,6 +41,12 @@ var IDCmd = &cmds.Command{
41 ShortDescription: `
42 Prints out information about the specified peer,
43 if no peer is specified, prints out local peers info.
44 +
45 +ipfs id supports the format option for output with the following keys:
46 +<id> : the peers id
47 +<aver>: agent version
48 +<pver>: protocol version
49 +<pubkey>: public key
50 `,
51 },
52 Arguments: []cmds.Argument{
test/sharness/t0100-name.sh
+8 -3
@@ -13,14 +13,19 @@ test_init_ipfs
13 test_expect_success "'ipfs name publish' succeeds" '
14 PEERID=`ipfs id -format="<id>"` &&
15 HASH=QmYpv2VEsxzTTXRYX3PjDg961cnJE3kY1YDXLycHGQ3zZB &&
16 - ipfs name publish $HASH > publish_out &&
16 + ipfs name publish $HASH > publish_out
17 +'
18 +
19 +test_expect_success "publish output looks good" '
20 echo Published name $PEERID to $HASH > expected1 &&
21 test_cmp publish_out expected1
19 -
22 '
23
24 test_expect_success "'ipfs name resolve' succeeds" '
23 - ipfs name resolve $PEERID > output &&
25 + ipfs name resolve $PEERID > output
26 +'
27 +
28 +test_expect_success "resolve output looks good" '
29 printf "%s" $HASH > expected2 &&
30 test_cmp output expected2
31 '