Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Done = errors.New("version")
Functions ¶
Types ¶
type ConfigFlag ¶ added in v0.1.1
type ConfigFlag string
func (ConfigFlag) BeforeApply ¶ added in v0.1.1
func (ConfigFlag) Decode ¶ added in v0.1.1
func (v ConfigFlag) Decode(ctx *kong.DecodeContext) error
func (ConfigFlag) IsBool ¶ added in v0.1.1
func (v ConfigFlag) IsBool() bool
type Globals ¶
type Globals struct { Version VersionFlag `name:"version" help:"Print args information and exit"` Verbose VerboseFlag `short:"v" help:"Enable verbose mode"` Config ConfigFlag `help:"Print parsed config and exit"` }
type VerboseFlag ¶ added in v0.1.2
type VerboseFlag string
func (VerboseFlag) BeforeApply ¶ added in v0.1.2
func (VerboseFlag) Decode ¶ added in v0.1.2
func (v VerboseFlag) Decode(ctx *kong.DecodeContext) error
func (VerboseFlag) IsBool ¶ added in v0.1.2
func (v VerboseFlag) IsBool() bool
type VersionFlag ¶
type VersionFlag string
func (VersionFlag) BeforeApply ¶
func (VersionFlag) Decode ¶
func (v VersionFlag) Decode(ctx *kong.DecodeContext) error
func (VersionFlag) IsBool ¶
func (v VersionFlag) IsBool() bool
Click to show internal directories.
Click to hide internal directories.