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.
This commit is contained in:
Martin Atkins 2020-10-23 15:38:45 -07:00
parent 8eed942482
commit 39504ede05
2 changed files with 0 additions and 37 deletions

View File

@ -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 <subcommand> [options] [args]
This command has subcommands for debug output management
`
return strings.TrimSpace(helpText)
}
func (c *DebugCommand) Synopsis() string {
return "Debug output management (experimental)"
}

View File

@ -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,