flag

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 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
	PreprocessFiles bool
	MissingKey      MissingKeyFlag
}

func Parse added in v0.0.7

func Parse() Flags

func (*Flags) FileLocationMessage added in v0.0.5

func (f *Flags) FileLocationMessage() string

type MissingKeyFlag added in v0.0.11

type MissingKeyFlag string

func (*MissingKeyFlag) Set added in v0.0.11

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

func (*MissingKeyFlag) String added in v0.0.11

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