Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FullCommand ¶
Types ¶
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 *StevedoreCommand)
func WithRun ¶
func WithRun(f CobraRunFunc) CommandOptionsFunc
WithRun is a command options function to setup the cobra Run option
func WithRunE ¶
func WithRunE(f CobraRunEFunc) CommandOptionsFunc
WithRunE is a command options function to setup the cobra RunE option
type StevedoreCommand ¶
StevedoreCommand defines a stevedore command element
func (*StevedoreCommand) AddCommand ¶
func (c *StevedoreCommand) AddCommand(cmd *StevedoreCommand)
AddCommand method add a new subcommand to stevedore command
func (*StevedoreCommand) Execute ¶
func (c *StevedoreCommand) Execute() error
Execute executes cobra command
func (*StevedoreCommand) Options ¶
func (c *StevedoreCommand) Options(opts ...CommandOptionsFunc)
Options configure the stevedore command
Click to show internal directories.
Click to hide internal directories.