Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSubcommand ¶
func AddSubcommand(s *Subcommand)
Types ¶
type Subcommand ¶
type Subcommand struct {
Use string
Short string
Example string
NoRequireConfig bool
Run func(subcommand *Subcommand, args []string) error
SetupFlags func(f *pflag.FlagSet)
SetupSubcommands func() []*Subcommand
// contains filtered or unexported fields
}
func (*Subcommand) Config ¶
func (s *Subcommand) Config() *config.Config
func (*Subcommand) ConfigParsingError ¶
func (s *Subcommand) ConfigParsingError() error
Click to show internal directories.
Click to hide internal directories.