opentofu/command/debug_command.go
James Bardin b8adf10236 Add debug command with json2dot
Add `terraform debug json2dot` to convert debug log graphs to dot
format. This is not meant to be in place of more advanced debug
visualization, but may continue to be a useful way to work with the
debug output.
2016-11-21 11:59:20 -05:00

31 lines
589 B
Go

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)"
}