Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BoolPtrMapper = kong.TypeMapper(reflect.TypeOf(&b), boolPtrMapper{})
BoolPtrMapper is an option to register a mapper to *bool type flag
Functions ¶
This section is empty.
Types ¶
type VersionFlag ¶
type VersionFlag string
VersionFlag is a flag to print version
func (VersionFlag) BeforeApply ¶
BeforeApply is executed before context is applied
func (VersionFlag) Decode ¶
func (v VersionFlag) Decode(_ *kong.DecodeContext) error
Decode the flag
Click to show internal directories.
Click to hide internal directories.