From 39504ede052507574179c9e628eaf9abc51f0983 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Fri, 23 Oct 2020 15:38:45 -0700 Subject: [PATCH] command: Remove the useless "debug" subcommand This is just a husk of a container command that has no nested commands under it, so it isn't serving any purpose. --- command/debug_command.go | 30 ------------------------------ commands.go | 7 ------- 2 files changed, 37 deletions(-) delete mode 100644 command/debug_command.go diff --git a/command/debug_command.go b/command/debug_command.go deleted file mode 100644 index 7058553b9..000000000 --- a/command/debug_command.go +++ /dev/null @@ -1,30 +0,0 @@ -package command - -import ( - "strings" - - "github.com/mitchellh/cli" -) - -// DebugCommand is a Command implementation that just shows help for -// the subcommands nested below it. -type DebugCommand struct { - Meta -} - -func (c *DebugCommand) Run(args []string) int { - return cli.RunResultHelp -} - -func (c *DebugCommand) Help() string { - helpText := ` -Usage: terraform debug [options] [args] - - This command has subcommands for debug output management -` - return strings.TrimSpace(helpText) -} - -func (c *DebugCommand) Synopsis() string { - return "Debug output management (experimental)" -} diff --git a/commands.go b/commands.go index 1e947d681..7040cbb33 100644 --- a/commands.go +++ b/commands.go @@ -95,7 +95,6 @@ func initCommands( PlumbingCommands = map[string]struct{}{ "state": struct{}{}, // includes all subcommands - "debug": struct{}{}, // includes all subcommands "force-unlock": struct{}{}, "push": struct{}{}, "0.12upgrade": struct{}{}, @@ -339,12 +338,6 @@ func initCommands( }, nil }, - "debug": func() (cli.Command, error) { - return &command.DebugCommand{ - Meta: meta, - }, nil - }, - "force-unlock": func() (cli.Command, error) { return &command.UnlockCommand{ Meta: meta,