Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseInputHas = map[string]ArgParam{
"-d": {Name: "-d", Description: "守护进程启动"},
"-h": {Name: "-h", Description: "显示帮助信息"},
}
Functions ¶
This section is empty.
Types ¶
type Argument ¶
type Argument struct {
// 是否有参数 【名称string】
Has []ArgParam
// 必须输入参数 【命令位置】【赋值名称】默认值
Argument []ArgArgument
// 可选输入参数 【赋值名称(开头必须是-)】默认值
Option []ArgParam
}
参数设置结构
type Input ¶
type Input struct {
// 是否有参数 【名称string】默认值bool
Has map[string]bool
// 必须输入参数 【命令位置】【赋值名称】默认值
Argument map[string]string
// 可选输入参数 【赋值名称(开头必须是-)】默认值
Option map[string]string
}
参数操作
type MapCommand ¶
Click to show internal directories.
Click to hide internal directories.