Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandOpts ¶
type CommandOpts func(d *Doc)
func WithHiddenFlags ¶
func WithHiddenFlags(flags ...string) CommandOpts
Hide any global or persisent flags from parent commands on the given command
func WithSubcommands ¶
func WithSubcommands(subCmds ...*Doc) CommandOpts
type DocFlag ¶
type DocFlag struct {
Name string `yaml:"name"`
Description string `yaml:"description"`
Shorthand string `yaml:"shorthand"`
Default string `yaml:"default"`
Enum []string `yaml:"enum"`
}
func (DocFlag) DefaultAsBool ¶
Click to show internal directories.
Click to hide internal directories.