1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 19:44:01 +08:00

core/commands: Enable stdin arguments for 'add' and 'cat', resolves #542

This commit is contained in:
Matt Bell
2015-01-12 11:32:25 -08:00
parent 78d36230d5
commit 70adc21d08
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ remains to be implemented.
},
Arguments: []cmds.Argument{
cmds.FileArg("path", true, true, "The path to a file to be added to IPFS").EnableRecursive(),
cmds.FileArg("path", true, true, "The path to a file to be added to IPFS").EnableRecursive().EnableStdin(),
},
Options: []cmds.Option{
cmds.OptionRecursivePath, // a builtin option that allows recursive paths (-r, --recursive)

View File

@ -18,7 +18,7 @@ it contains.
},
Arguments: []cmds.Argument{
cmds.StringArg("ipfs-path", true, true, "The path to the IPFS object(s) to be outputted"),
cmds.StringArg("ipfs-path", true, true, "The path to the IPFS object(s) to be outputted").EnableStdin(),
},
Run: func(req cmds.Request) (interface{}, error) {
node, err := req.Context().GetNode()