cli

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProgramVersion = VersionInfo{
	Version:     version,
	BuildNumber: buildNum,
	CommitID:    commitID,
}

Functions

This section is empty.

Types

type CLI

type CLI struct {
	TerraformPath   string          `help:"Path to Terraform binary"`
	PlaybookBinPath string          `help:"Path to ansible-playbook binary"`
	ConfigFile      string          `help:"Path to configuration file"`
	EnableDebug     bool            `help:"Enable debug logging"`
	Setup           SetupCmd        `cmd:"" help:"Setup and configure infrastructure"`
	TearDown        TearDownCmd     `cmd:"" name:"teardown" help:"Cleanup created infrastructure"`
	Version         VersionCmd      `cmd:"" name:"version" help:"Display version information"`
	TestTemplate    TestTemplateCmd `cmd:"" name:"test-template" help:"Generate code from template and perform sanity checks"`
}

type SetupCmd

type SetupCmd struct {
	SkipTerraform bool `help:"Do not run Terraform"`
	SkipAnsible   bool `help:"Do not run Ansible"`
}

func (*SetupCmd) Run

func (s *SetupCmd) Run(ctx *kong.Context) error

type TearDownCmd

type TearDownCmd struct {
}

func (*TearDownCmd) Run

func (t *TearDownCmd) Run(ctx *kong.Context) error

type TestTemplateCmd added in v0.3.0

type TestTemplateCmd struct {
}

func (*TestTemplateCmd) Run added in v0.3.0

func (tc *TestTemplateCmd) Run(ctx *kong.Context) error

type VersionCmd added in v0.1.1

type VersionCmd struct {
}

func (*VersionCmd) Run added in v0.1.1

func (vc *VersionCmd) Run(ctx *kong.Context) error

type VersionInfo added in v0.1.1

type VersionInfo struct {
	Version     string
	BuildNumber string
	CommitID    string
}

Jump to

Keyboard shortcuts

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