Documentation ¶
Index ¶
- func DisallowExtraArgs(cmd *cobra.Command)
- func FlagHelpSectionsUsageTemplate(sections []FlagHelpSection) string
- func HelpSectionsUsageTemplate(sections []HelpSection) string
- func IsCobraManagedCommand(args []string) bool
- func ReconfigureCmdWithSubcmd(cmd *cobra.Command)
- func ResolveFlagsForCmd(cmd *cobra.Command, args []string) error
- func ShowHelp(cmd *cobra.Command, args []string) error
- func ShowSubcommands(cmd *cobra.Command, args []string) error
- func VisitCommands(cmd *cobra.Command, fns ...ReconfigureFunc)
- type FlagHelpSection
- type HelpSection
- type ReconfigureFunc
- type ResolvableFlag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisallowExtraArgs ¶
func FlagHelpSectionsUsageTemplate ¶
func FlagHelpSectionsUsageTemplate(sections []FlagHelpSection) string
func HelpSectionsUsageTemplate ¶
func HelpSectionsUsageTemplate(sections []HelpSection) string
func IsCobraManagedCommand ¶
func VisitCommands ¶
func VisitCommands(cmd *cobra.Command, fns ...ReconfigureFunc)
Types ¶
type FlagHelpSection ¶
func (FlagHelpSection) Matches ¶
func (s FlagHelpSection) Matches(name string) bool
type HelpSection ¶
type ReconfigureFunc ¶
func ReconfigureLeafCmds ¶
func ReconfigureLeafCmds(fs ...func(cmd *cobra.Command)) ReconfigureFunc
func WrapRunEForCmd ¶
func WrapRunEForCmd(additionalRunE func(*cobra.Command, []string) error) ReconfigureFunc
type ResolvableFlag ¶
type ResolvableFlag interface {
Resolve() error
}
Click to show internal directories.
Click to hide internal directories.