root

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoTFVarsName

func AutoTFVarsName(i int, varFile string) (string, error)

AutoTFVarsName returns a tfvars file name that will be automatically be loaded by Terraform for given index and var file.

Types

type Command

type Command struct {
	Build      *CommandBuild      `command:"build"`
	VirtualEnv *CommandVirtualEnv `command:"virtualenv"`
}

Command represents the root subcommand.

type CommandBuild

type CommandBuild struct {
	Pkg      string   `long:"pkg"`
	Name     string   `long:"name"`
	OS       string   `long:"os"`
	Arch     string   `long:"arch"`
	Out      string   `long:"out"`
	PkgDir   string   `long:"pkg_dir"`
	Srcs     string   `long:"srcs"`
	VarFiles []string `long:"var_files"`
	Modules  []string `long:"modules"`

	ModuleOpts *module.Opts
}

CommandBuild represents the build subcommand.

func (*CommandBuild) Execute

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

Execute executes the build subcommand.

type CommandVirtualEnv

type CommandVirtualEnv struct {
	TerraformBinary   string `long:"terraform_binary"`
	OS                string `long:"os"`
	Arch              string `long:"arch"`
	RootModule        string `long:"root_module"`
	VirtualEnvBaseDir string `long:"virtual_env_base_dir" default:"./plz-out/terraform/venvs"`

	PleaseOpts *please.Opts
}

CommandVirtualEnv represents the virtualenv subcommand.

func (*CommandVirtualEnv) Execute

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

Execute executes the virtualenv subcommand.

Jump to

Keyboard shortcuts

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