Help us shape the future of Go! Take the 2026 Go Developer Survey

command

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func HelpFunc

func HelpFunc(commands map[string]cli.CommandFactory) string

helpFunc is a cli.HelpFunc that can be used to output the help CLI instructions for Terraform.

func InitCommands

func InitCommands(
	workingDir string,
)

Types

type Meta

type Meta struct {
	WorkingDir string

	Ui cli.Ui
}

type ValidateCommand

type ValidateCommand struct {
	Meta

	// Path is the relative or absolute path to the factory configuration file
	Path string

	// Recursive is a flag that indicates whether to recursively validate all
	// subdirectories.
	Recursive bool
}

ValidateCommand is a Command implementation that validates factory files.

func (*ValidateCommand) Help

func (*ValidateCommand) Help() string

Help implements cli.Command.

func (*ValidateCommand) Run

func (c *ValidateCommand) Run(rawArgs []string) int

Run executes the validate command and returns an exit code.

func (*ValidateCommand) Synopsis

func (*ValidateCommand) Synopsis() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL