cmd

package
v0.0.0-...-02a33f3 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	Globals

	TfCmd TfCmd `cmd:"" name:"tf" help:"🚀 Generate Terraform files and other Terraform related resources."`
}

type Context

type Context struct {
	Debug bool
}

type Globals

type Globals struct {
	Version VersionFlag `name:"version" help:"Print version information and quit"`
	Debug   bool        `short:"D" help:"Enable debug mode"`
}

type ModuleCmd

type ModuleCmd struct {
	Name         string `arg:"" required:"" help:"The name of the module to operate on."`
	Group        string `` /* 174-byte string literal not displayed */
	Path         string `` /* 152-byte string literal not displayed */
	WithExamples bool   `name:"with-examples" help:"Generate examples for the module."`
	WithTests    bool   `name:"with-tests" help:"Generate tests for the module."`
}

func (*ModuleCmd) Run

func (c *ModuleCmd) Run(ctx *kong.Context) error

type TfCmd

type TfCmd struct {
	ModuleCmd ModuleCmd `` /* 843-byte string literal not displayed */
}

type VersionFlag

type VersionFlag string

func (VersionFlag) BeforeApply

func (v VersionFlag) BeforeApply(app *kong.Kong, vars kong.Vars) error

func (VersionFlag) Decode

func (v VersionFlag) Decode(ctx *kong.DecodeContext) error

func (VersionFlag) IsBool

func (v VersionFlag) IsBool() bool

Jump to

Keyboard shortcuts

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