Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppCommand ¶
AppCommand defines a stevedore command element
func NewCommand ¶
func NewCommand(cmd *cobra.Command) *AppCommand
func (*AppCommand) AddCommands ¶
func (c *AppCommand) AddCommands(cmds ...*AppCommand)
AddCommand method add a new subcommand to stevedore command
func (*AppCommand) Options ¶
func (c *AppCommand) Options(opts ...CommandOptionsFunc)
type CobraRunEFunc ¶
CobraRunEFunc is a cobra handler function which returns an error
type CobraRunFunc ¶
CobraRunFunc is a cobra handler function
type CommandOptionsFunc ¶
type CommandOptionsFunc func(c *AppCommand)
func WithRun ¶
func WithRun(f CobraRunFunc) CommandOptionsFunc
func WithRunE ¶
func WithRunE(f CobraRunEFunc) CommandOptionsFunc
Click to show internal directories.
Click to hide internal directories.