go-ipfs-cmds icon indicating copy to clipboard operation
go-ipfs-cmds copied to clipboard

Allow NoRemote/NoLocal to be configured on a per-run basis

Open schomatis opened this issue 4 years ago • 0 comments

https://github.com/ipfs/go-ipfs-cmds/blob/87b5c50105f87fafa651000c4955571b132948b2/command.go#L94-L98

At the moment these configurations apply on a per-command basis. For some specific cases of go-ipfs commands it might be valuable to configure them on a per-run basis depending on the arguments the command is being run with.

More background (see also https://github.com/ipfs/go-ipfs/issues/8131): ipfs files write command can be run either locally or remotely but when specified with the --flush=false flag it should be run only remotely or fail to make sure the flush doesn't take place.

schomatis avatar Sep 13 '21 12:09 schomatis