Skip to content

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

@schomatis

Description

@schomatis

go-ipfs-cmds/command.go

Lines 94 to 98 in 87b5c50

// NoRemote denotes that a command cannot be executed in a remote environment
NoRemote bool
// NoLocal denotes that a command cannot be executed in a local environment
NoLocal bool

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 ipfs/kubo#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    need/triageNeeds initial labeling and prioritization

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions