Documentation ¶
Index ¶
- Constants
- func Adapter(router *Router)
- func Alias(cmd string, alias ...string)
- func AliasMany(alias map[string][]string)
- func AmendSubC(subC string) string
- func CallCmdHelp(key string) bool
- func FormatStr(d string, ss ...[][]string) string
- func Init(param []string)
- func Register(name string, cmd interface{})
- func RegisterApps(data map[string]interface{})
- func Rwd() string
- func SubCommand(able bool)
- type ActionInterface
- type App
- type Command
- type Router
- type SubCmdAlias
Constants ¶
View Source
const ( AppMethodInit = "Init" AppMethodRun = "Run" AppMethodNoSubC = "SubCommandUnfind" AppMethodHelp = "Help" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type Command ¶
type Command struct { App App SCA *SubCmdAlias }
命令结构体
func (*Command) InnerDistribute ¶ added in v0.2.0
func (c *Command) InnerDistribute()
入口/内部分发(Entrance)
func (*Command) SubCommandUnfind ¶ added in v0.1.1
二级命令应用
type Router ¶
type SubCmdAlias ¶ added in v0.2.0
二级命令别名
Click to show internal directories.
Click to hide internal directories.