Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands map[string]ICommand //用于保存所有命令
Functions ¶
Types ¶
type CommandSet ¶
type CommandSet struct{} //用户操作Commands集合的 类
func NewCommandSet ¶
func NewCommandSet() *CommandSet
func (*CommandSet) Each ¶
func (this *CommandSet) Each(fn func(item ICommand))
func (*CommandSet) Register ¶
func (this *CommandSet) Register(name string, cmd ICommand)
type ConfigCmd ¶
type ConfigCmd struct { FlagValue *bool CommandSet ServiceCommandSet *flag.FlagSet }
func NewConfigCmd ¶
func NewConfigCmd() *ConfigCmd
type DBCommand ¶
type ResourceCommand ¶
type ResourceCommand struct { IsCreate *bool ResPath *string CommandSet ServiceCommandSet *flag.FlagSet //这里做了改动。直接在属性中 }
func NewResourceCmd ¶
func NewResourceCmd() *ResourceCommand
func (*ResourceCommand) Init ¶
func (this *ResourceCommand) Init()
func (*ResourceCommand) Run ¶
func (this *ResourceCommand) Run()
type VersionCmd ¶
type VersionCmd struct { FlagValue *bool CommandSet }
func NewVersionCmd ¶
func NewVersionCmd() *VersionCmd
func (*VersionCmd) Init ¶
func (this *VersionCmd) Init()
func (*VersionCmd) Run ¶
func (this *VersionCmd) Run()
Click to show internal directories.
Click to hide internal directories.