Commit 778d6c63 authored by Łukasz Magiera's avatar Łukasz Magiera

object put: wrap CID in Object

License: MIT
Signed-off-by: default avatarŁukasz Magiera <magik6k@gmail.com>
parent c9446a77
......@@ -412,15 +412,15 @@ And then run:
}
}
res.SetOutput(objectCid)
res.SetOutput(&Object{Hash: objectCid.String()})
},
Marshalers: cmds.MarshalerMap{
cmds.Text: func(res cmds.Response) (io.Reader, error) {
object := res.Output().(*cid.Cid)
return strings.NewReader("added " + object.String() + "\n"), nil
object := res.Output().(*Object)
return strings.NewReader("added " + object.Hash + "\n"), nil
},
},
Type: cid.Cid{},
Type: Object{},
}
var ObjectNewCmd = &cmds.Command{
......
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