Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Inject ¶ added in v0.0.5
func Inject(cmd CommandInterface)
func ReadOsArgs ¶ added in v0.0.5
func ReadOsArgs()
Types ¶
type CommandDesc ¶ added in v0.0.5
type CommandDoc ¶ added in v0.0.5
type CommandDoc struct { CmdDesc *CommandDesc MethodDesc map[string]string OptionDesc map[string]string }
type CommandInterface ¶
type CommandInterface interface {
Help() *CommandDoc
}
type CommandSet ¶ added in v0.0.5
type CommandSet struct { Commands map[string]CommandInterface Labels []string Current *Operate }
type ServerCommand ¶ added in v0.0.6
type ServerCommand struct{}
func (*ServerCommand) Help ¶ added in v0.0.6
func (t *ServerCommand) Help() *CommandDoc
func (*ServerCommand) Start ¶ added in v0.0.6
func (t *ServerCommand) Start(configPath Option)
Click to show internal directories.
Click to hide internal directories.