Make ipfs config edit run on client Fixes #2649
Make ipfs config edit run on client Fixes #2649 License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
Jakub Sztandera committed
May 17, 2016 at 16:02 UTC
86425ef8f865a63d236b80b4e148b5fc9c3fadf9
1 file changed
+7
-6
cmd/ipfs/ipfs.go
+7
-6
@@ -100,10 +100,11 @@ var cmdDetailsMap = map[*cmds.Command]cmdDetails{
100
101
// daemonCmd allows user to initialize the config. Thus, it may be called
102
// without using the config as input
103
- daemonCmd: {doesNotUseConfigAsInput: true, cannotRunOnDaemon: true},
104
- commandsClientCmd: {doesNotUseRepo: true},
105
- commands.CommandsDaemonCmd: {doesNotUseRepo: true},
106
- commands.VersionCmd: {doesNotUseConfigAsInput: true, doesNotUseRepo: true}, // must be permitted to run before init
107
- commands.LogCmd: {cannotRunOnClient: true},
108
- commands.RepoFsckCmd: {cannotRunOnDaemon: true},
103
+ daemonCmd: {doesNotUseConfigAsInput: true, cannotRunOnDaemon: true},
104
+ commandsClientCmd: {doesNotUseRepo: true},
105
+ commands.CommandsDaemonCmd: {doesNotUseRepo: true},
106
+ commands.VersionCmd: {doesNotUseConfigAsInput: true, doesNotUseRepo: true}, // must be permitted to run before init
107
+ commands.LogCmd: {cannotRunOnClient: true},
108
+ commands.RepoFsckCmd: {cannotRunOnDaemon: true},
109
+ commands.ConfigCmd.Subcommand("edit"): {cannotRunOnDaemon: true, doesNotUseRepo: true},
110
}