Documentation
¶
Index ¶
- func AskFlagInput(cmd *cobra.Command, flag *pflag.Flag) error
- func FindSubCommand(cmd *cobra.Command, cmdSearchName string) (*cobra.Command, bool)
- func GetNonProvidedLocalFlags(cmd *cobra.Command) []*pflag.Flag
- func GetSubCommands(cmd *cobra.Command, cmdsToHide []string) ([]string, map[string]func(*cobra.Command, []string))
- func MultiselectRemainingFlags(cmd *cobra.Command) (map[string]*pflag.Flag, []string)
- func MultiselectSubcommands(cmd *cobra.Command, args []string, commandsList []string, ...) (err error)
- func RunCommandAsPalette(cmd *cobra.Command, args []string, cmdSearchName string, cmdsToHide []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskFlagInput ¶
AskFlagInput prompts the user for input for a specific flag of a Cobra command.
func FindSubCommand ¶
FindSubCommand searches for a sub-command within a Cobra command.
func GetNonProvidedLocalFlags ¶
GetNonProvidedLocalFlags retrieves flags that have not been provided for a Cobra command.
func GetSubCommands ¶
func GetSubCommands(cmd *cobra.Command, cmdsToHide []string) ([]string, map[string]func(*cobra.Command, []string))
GetSubCommands retrieves sub-commands and hides the ones specified.
func MultiselectRemainingFlags ¶
MultiselectRemainingFlags presents an interactive multiselect for remaining flags and returns selected ones.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.