Documentation ¶
Index ¶
- func AddFlag[T string](cmd *cobra.Command, name, shorthand, value, description string, required bool)
- func Execute(root *cobra.Command, commanders []CommanderRegister)
- func Flag[T string](cmd *cobra.Command, name string, result *T) error
- func HelpFunc(cmd *cobra.Command, args []string)
- type CommanderRegister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute(root *cobra.Command, commanders []CommanderRegister)
Types ¶
type CommanderRegister ¶
Click to show internal directories.
Click to hide internal directories.