mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-25 16:31:10 -06:00
b8adf10236
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.
31 lines
589 B
Go
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)"
|
|
}
|