Documentation
¶
Overview ¶
Package helpdoc builds the default command help document.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
Block is one section in a help document.
type Command ¶
type Command struct {
Name string
Usage string
Summary string
Description string
Flags *flag.FlagSet
FlagConfigs []FlagConfig
Subcommands []Command
}
Command is the command metadata needed to build help.
type Document ¶
type Document []Block
Document is an ordered list of help blocks.
type FlagConfig ¶
FlagConfig adds help-specific behavior to a flag in a FlagSet.