Documentation
¶
Overview ¶
Package arg has structures used to store the flag values used by the cobra.Command methods.
Index ¶
- Variables
- func CleanOpts(a ...string) string
- func FilterFlag(w io.Writer, t any, flag, val string) error
- func Invalid(w io.Writer, arg string, args ...string) error
- func Targets() []string
- type APIs
- type Approve
- type Clean
- type Config
- type Demozoo
- type Group
- type Import
- type People
- type Persistent
- type Proof
- type Recent
- type TestSite
- type ZipCmmt
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFlagValue = errors.New("value for flag is not valid") ErrNoCmd = errors.New("no command argument was provided") )
Functions ¶
func FilterFlag ¶
FilterFlag compairs the value of the filter flag against the list of slice values.
Types ¶
type Persistent ¶
type Persistent struct { Panic bool // Enable panic errors to help debug. ASCII bool // Ascii is placeholder for Cobra to store the PersistentFlag value* Quiet bool // Quiet is placeholder for Cobra to store the PersistentFlag value* Version bool // Version is placeholder for Cobra to store the PersistentFlag value* }
Persistent global flags.
Click to show internal directories.
Click to hide internal directories.