command

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidCommand = errors.New("mu: invalid mu command")

Functions

This section is empty.

Types

type Apply

type Apply struct {
	Project   string
	Workspace string
}

func (*Apply) Type

func (a *Apply) Type() Type

type Command

type Command interface {
	Type() Type
}

func Parse

func Parse(msg string) (Command, error)

type Help

type Help struct{}

func (*Help) Type

func (h *Help) Type() Type

type Import

type Import struct {
	Project   string
	Workspace string
	Address   string
	ID        string
	Vars      TerraformVars
	VarFiles  TerraformVarFiles
}

func (*Import) Type

func (i *Import) Type() Type

type Plan

type Plan struct {
	Project   string
	Workspace string
	Vars      TerraformVars
	VarFiles  TerraformVarFiles
	Destroy   bool
}

func (*Plan) Type

func (p *Plan) Type() Type

type StateRm

type StateRm struct {
	Project   string
	Workspace string
	Addresses []string
	DryRun    bool
}

func (*StateRm) Type

func (s *StateRm) Type() Type

type TerraformVarFiles

type TerraformVarFiles []string

func (*TerraformVarFiles) Set

func (t *TerraformVarFiles) Set(str string) error

func (*TerraformVarFiles) String

func (t *TerraformVarFiles) String() string

type TerraformVars

type TerraformVars []string

func (*TerraformVars) Set

func (t *TerraformVars) Set(str string) error

func (*TerraformVars) String

func (t *TerraformVars) String() string

type Type

type Type string
const (
	PlanType   Type = "plan"
	ApplyType  Type = "apply"
	UnlockType Type = "unlock"
	HelpType   Type = "help"
	ImportType Type = "import"
	StateType  Type = "state"
)

type Unlock

type Unlock struct {
	Project       string
	Workspace     string
	ForceUnlockID string
}

func (*Unlock) Type

func (u *Unlock) Type() Type

Jump to

Keyboard shortcuts

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