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 quit"`
Verbose bool `short:"v" help:"Enable verbose mode"`
Config ConfigFlag ``
}
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.