flag

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrVariableNotSet = fmt.Errorf("value not set: mast be separated by [%s]", entity.EqualsSign)
)

Functions

This section is empty.

Types

type Flags

type Flags struct {
	ConfigPath   string
	Verbose      bool
	DryRun       bool
	Version      bool
	ReadStdin    bool
	TemplateVars TemplateVarsFlag
	// AWD application working directory
	AWD string
}

func ParseFlags

func ParseFlags() Flags

func (*Flags) FileLocationMessage added in v0.0.5

func (f *Flags) FileLocationMessage() string

type TemplateVarsFlag added in v0.0.5

type TemplateVarsFlag struct {
	Vars map[string]any
}

func (*TemplateVarsFlag) Set added in v0.0.5

func (v *TemplateVarsFlag) Set(s string) error

func (*TemplateVarsFlag) String added in v0.0.5

func (v *TemplateVarsFlag) String() string

Jump to

Keyboard shortcuts

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