Documentation ¶
Index ¶
- func BindSubCmds(root *cobra.Command)
- func CallCmd(me *cobra.Command, target cobra.Command, args ...string) error
- func CmdUtils(c *cobra.Command) *cmd
- func GetHelpCommand(cmd *cobra.Command) *cobra.Command
- func GetInternalAllSubCmds(cmd *cobra.Command) []*cobra.Command
- func GetInternalSubCmdByName(cmd *cobra.Command, name string) *cobra.Command
- func GetSubCmds() []*cobra.Command
- func RegisterSubCmd(cmds ...*cobra.Command)
- func WithParentPersistentPreRunE(f func(cmd *cobra.Command, args []string) error) func(cmd *cobra.Command, args []string) error
- type Registory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindSubCmds ¶
func GetInternalSubCmdByName ¶
func GetSubCmds ¶
func RegisterSubCmd ¶
Types ¶
type Registory ¶
func (*Registory) BindSubCmds ¶
サブコマンドをRootに追加する
func (*Registory) RegisterSubCmd ¶
サブコマンドを追加する
Click to show internal directories.
Click to hide internal directories.