Commit fceb55ef authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

object put: Added plaintext marshaler

parent b4de6cce
......@@ -221,6 +221,12 @@ Data should be in the format specified by <encoding>.
return output, nil
},
Marshalers: cmds.MarshalerMap{
cmds.Text: func(res cmds.Response) ([]byte, error) {
object := res.Output().(*Object)
return []byte(object.Hash), nil
},
},
Type: &Object{},
}
......
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