From 3f2f1468fdf927ed1146c724b0163941af99a4c6 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Wed, 25 May 2016 12:55:27 +0200 Subject: [PATCH] Require diag command to run on daemon License: MIT Signed-off-by: Jakub Sztandera --- cmd/ipfs/ipfs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/ipfs/ipfs.go b/cmd/ipfs/ipfs.go index f8c32512b6ad..3c6a8f5ccaf7 100644 --- a/cmd/ipfs/ipfs.go +++ b/cmd/ipfs/ipfs.go @@ -105,6 +105,7 @@ var cmdDetailsMap = map[*cmds.Command]cmdDetails{ commands.CommandsDaemonCmd: {doesNotUseRepo: true}, commands.VersionCmd: {doesNotUseConfigAsInput: true, doesNotUseRepo: true}, // must be permitted to run before init commands.LogCmd: {cannotRunOnClient: true}, + commands.DiagCmd: {cannotRunOnClient: true}, commands.RepoFsckCmd: {cannotRunOnDaemon: true}, commands.ConfigCmd.Subcommand("edit"): {cannotRunOnDaemon: true, doesNotUseRepo: true}, }