Commit da20887e authored by Juan Batiz-Benet's avatar Juan Batiz-Benet Committed by Brian Tiger Chow

ipfs add should output hash to user

for now, ipfs add output format:

    added <hash> <path>
    ...

(these commands will adhere to strict formats.)
parent b053896e
......@@ -99,7 +99,12 @@ func addNode(n *core.IpfsNode, nd *dag.Node, fpath string) error {
return err
}
u.POut("added %s\n", fpath)
k, err := nd.Key()
if err != nil {
return err
}
u.POut("added %s %s\n", k.Pretty(), fpath)
// ensure we keep it. atm no-op
return n.PinDagNode(nd)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment