提交 9d299636 作者: Matt Bell 提交者: Juan Batiz-Benet

object put: Made output (almost) match original output

(The file path is omitted, but since only one object can be added at a time, I think this is ok)
上级 fceb55ef
......@@ -224,7 +224,7 @@ Data should be in the format specified by <encoding>.
Marshalers: cmds.MarshalerMap{
cmds.Text: func(res cmds.Response) ([]byte, error) {
object := res.Output().(*Object)
return []byte(object.Hash), nil
return []byte("added " + object.Hash), nil
},
},
Type: &Object{},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论