Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlagHelperTest ¶
func FlagHelperTest(arguments []string, plugin CommandPlugin, callback func())
Types ¶
type CommandHelper ¶
type CommandHelper struct {
Command *cli.Command
Plugins []CommandPlugin
Action func(cCtx *cli.Context) error
}
func (*CommandHelper) AddPlugin ¶
func (this *CommandHelper) AddPlugin(plugin CommandPlugin)
func (CommandHelper) GetCommand ¶
func (this CommandHelper) GetCommand() *cli.Command
type CommandPlugin ¶
type FlagHelper ¶
type FlagHelper struct {
Prefix string
Name string
Category string
Value string
Usage string
Required bool
// contains filtered or unexported fields
}
func (*FlagHelper) GetEnvVar ¶
func (this *FlagHelper) GetEnvVar() string
func (*FlagHelper) GetFlagName ¶
func (this *FlagHelper) GetFlagName() string
func (*FlagHelper) StringFlag ¶
func (this *FlagHelper) StringFlag() *cli.StringFlag
func (*FlagHelper) StringValue ¶
func (this *FlagHelper) StringValue(cCtx *cli.Context) string
Click to show internal directories.
Click to hide internal directories.