Documentation ¶
Index ¶
- func GetWd() string
- func New() contract.Console
- type Console
- func (c *Console) GetPluginPath() []string
- func (c *Console) HasCommand() bool
- func (c *Console) Init()
- func (c *Console) RunCommand() error
- func (c *Console) RunCommandHelp(name string, con contract.Configure) error
- func (c *Console) RunHelp()
- func (c *Console) RunPlugin(path string, name string, cmd contract.Command) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Console ¶
type Console struct {
// contains filtered or unexported fields
}
func (*Console) HasCommand ¶
func (*Console) RunCommand ¶
func (*Console) RunCommandHelp ¶
某个命令需要帮助时
Click to show internal directories.
Click to hide internal directories.