mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 03:19:47 +08:00
core/commands: Enable stdin arguments for 'add' and 'cat', resolves #542
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user