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(ctx context.Context, subcommand *Subcommand, args []string) error SetupFlags func(f *pflag.FlagSet) SetupSubcommands func() []*Subcommand SetupCobra func(c *cobra.Command) // 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.