@cryptotaxi247 / kubo / commits / e4b630289

block put: Support stdin input on 'block put'

Matt Bell committed Nov 14, 2014 at 02:23 UTC e4b630289acaf3d66d6a96c415ade91fa94973f4
1 file changed +1 -1
core/commands2/block.go
+1 -1
@@ -90,7 +90,7 @@ It reads from stdin, and <key> is a base58 encoded multihash.
90 },
91
92 Arguments: []cmds.Argument{
93 - cmds.FileArg("data", true, false, "The data to be stored as an IPFS block"),
93 + cmds.FileArg("data", true, false, "The data to be stored as an IPFS block").EnableStdin(),
94 },
95 Run: func(req cmds.Request) (interface{}, error) {
96 n, err := req.Context().GetNode()