Versions in this module Expand all Collapse all v0 v0.0.1 May 4, 2020 Changes in this version + const CommandKey + func CommanderRegisterFn(commander Commander, app *CmdApp) + func CreateCommandByMap(data map[string]interface{}) *cli.Command + func NewCommand() *cli.Command + type AutoInit interface + Init func() + type BaseCommander struct + Command *cli.Command + func (commander *BaseCommander) Argument() CommanderArgument + func (commander *BaseCommander) Arguments() (flags []cli.Flag) + func (commander *BaseCommander) Boot() + func (commander *BaseCommander) GetCommand() *cli.Command + func (commander *BaseCommander) Handle(ctx *cli.Context) error + func (commander *BaseCommander) Init() + func (commander *BaseCommander) InitCommand() *BaseCommander + func (commander *BaseCommander) Register(app *CmdApp) + func (commander *BaseCommander) SetProperties(properties map[string]interface{}) + type BootAble interface + Boot func() + type CmdApp struct + func NewCmdApp() *CmdApp + func (cmd *CmdApp) AppendCommand(commander Commander, index ...int) + func (cmd *CmdApp) Init() + func (cmd *CmdApp) InsertCommand(commander Commander) *CmdApp + func (cmd *CmdApp) IsLoaded(key string) bool + func (cmd *CmdApp) IsLocked() bool + func (cmd *CmdApp) Len() int + func (cmd *CmdApp) Less(i, j int) bool + func (cmd *CmdApp) LoadCommands(commanders ...Commander) *CmdApp + func (cmd *CmdApp) Run() error + func (cmd *CmdApp) SetProperties(properties map[string]interface{}) + func (cmd *CmdApp) Swap(i, j int) + type CommandAutoRegister interface + Register func(app *CmdApp) + type Commander interface + Argument func() CommanderArgument + GetCommand func() *cli.Command + func NewCommander(data map[string]interface{}) Commander + type CommanderArgument interface + AddArgument func(cli.Flag) + Arguments func() []cli.Flag + SetArguments func([]cli.Flag) + func NewCommanderArgument(cmd *cli.Command) CommanderArgument + type CommanderArguments struct + Command *cli.Command + func (args *CommanderArguments) AddArgument(arg cli.Flag) + func (args *CommanderArguments) Arguments() []cli.Flag + func (args *CommanderArguments) SetArguments(lists []cli.Flag) + type CommanderHandler interface + Handle func(*cli.Context) error + type MapPropertiesSetter interface + SetProperties func(map[string]interface{}) + type Runner interface + Run func() error