cmd

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TF_EXT          = ".tf"
	TFVARS_EXT      = ".tfvars"
	TFVARS_JSON_EXT = ".tfvars.json"
)
View Source
const (
	// ATLANTIS_WORKSPACE is the environment variable that contains the name of
	// the workspace that Atlantis is currently running for.
	ATLANTIS_WORKSPACE = "WORKSPACE"
)

Variables

View Source
var ErrNoEnvVars error = fmt.Errorf("no matching prefixed environment variables found")

Functions

func New

func New() (*cobra.Command, error)

New returns the new root command for this utility.

It initializes the root command and adds all subcommands.

func NewGenerateCmd

func NewGenerateCmd() (*cobra.Command, error)

NewGenerateCmd creates a new `generate` command, while applying all flags with their defaults overlayed by the flags passed in by the caller.

func NewMultiEnvCmd added in v0.0.2

func NewMultiEnvCmd() *cobra.Command

NewMultiEnvCmd creates a new `multienv` command

func NewVersionCmd

func NewVersionCmd() *cobra.Command

NewVersionCmd returns the command for retrieving the version of this utility.

Types

type Flags

type Flags struct {
	AutoMerge               bool
	AutoPlan                bool
	DefaultTerraformVersion string
	MultiEnv                bool
	Output                  string
	Parallel                bool
	Root                    string
	UseWorkspaces           bool
}

Flags represents the flags for the `generate` command

func NewFlags

func NewFlags() (*Flags, error)

NewFlags returns a default Flags struct

func (*Flags) AddFlags

func (flags *Flags) AddFlags(cmd *cobra.Command)

AddFlags registers flags for the `generate` command

Jump to

Keyboard shortcuts

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