flag

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDashFlagNotLast = fmt.Errorf(`'-' must be the last argument`)
)
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          string // AWD application working directory
	Skip         SkipFlag
}

func Parse added in v0.0.7

func Parse() Flags

func (*Flags) FileLocationMessage added in v0.0.5

func (f *Flags) FileLocationMessage() string

type SkipFlag added in v0.0.6

type SkipFlag []string

func (*SkipFlag) Set added in v0.0.6

func (s *SkipFlag) Set(value string) error

func (*SkipFlag) String added in v0.0.6

func (s *SkipFlag) String() 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