cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REPLCmdShortDescription = "Run as interactive shell."
	REPLCmdLongDescription  = RunCmdShortDescription + "\n\n" +
		"The REPL shell provides the same capabilities as the regular `run`\n" +
		"command."
)
View Source
const (
	RunCmdShortDescription = "Run parses, resolves, and executes a Starlark file."
	RunCmdLongDescription  = RunCmdShortDescription + "\n\n" +
		"When a provider is instantiated is automatically installed, at the \n" +
		"default location (~/.terraform.d/plugins), this can be overrided \n" +
		"using the flag `--plugin-dir=<PATH>`. \n\n" +
		"The Starlark file can be \"transpiled\" to a HCL file using the flag \n" +
		"`--to-hcl=<FILE>`. This file can be used directly with Terraform init \n" +
		"and plan commands.\n"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type REPLCmd

type REPLCmd struct {
	// contains filtered or unexported fields
}

func (*REPLCmd) Execute

func (c *REPLCmd) Execute(args []string) error

type RunCmd

type RunCmd struct {
	ToHCL          string `long:"to-hcl" description:"dumps resources to a hcl file"`
	PrintHCL       bool   `long:"print-hcl" description:"print resources to a hcl file"`
	PositionalArgs struct {
		File string `positional-arg-name:"file" description:"starlark source file"`
	} `positional-args:"true" required:"1"`
	// contains filtered or unexported fields
}

func (*RunCmd) Execute

func (c *RunCmd) Execute(args []string) error

Directories

Path Synopsis
ascode-doc
doc

Jump to

Keyboard shortcuts

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