Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandContainer = &container{ Instances: make(map[string]interface{}), Labels: []string{}, Current: nil, }
Functions ¶
Types ¶
type CommandArgvs ¶ added in v0.0.15
type CommandArgvs struct { Command CommandInterface Method reflect.Value Options []*Option }
CommandArgvs command命令行输入内容
type CommandDesc ¶ added in v0.0.5
CommandDesc command描述
type CommandHelpDoc ¶ added in v0.0.15
type CommandHelpDoc struct { AutoExit bool CommandDesc CommandDesc MethodDesc []MethodDesc OptionDesc []OptionDesc }
CommandHelpDoc command帮助文档
type CommandInterface ¶
type CommandInterface interface {
Help() *CommandHelpDoc
}
CommandInterface command父接口
type MethodDesc ¶ added in v0.0.9
MethodDesc command方法描述
type OptionDesc ¶ added in v0.0.15
OptionDesc command方法参数描述
Click to show internal directories.
Click to hide internal directories.