Documentation ¶
Index ¶
- func GetParamBoolVal(paramName string) bool
- func GetParamStringVal(paramName string) string
- func PrintDefaults()
- func RegisterCommandBool(cmdName string, defaultValue bool, usage string, fn CommandFunctionCB)
- func RegisterCommandString(cmdName string, defaultValue string, usage string, fn CommandFunctionCB)
- func Run(args []string) error
- type CommandFunctionCB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetParamBoolVal ¶
func GetParamStringVal ¶
func PrintDefaults ¶
func PrintDefaults()
func RegisterCommandBool ¶
func RegisterCommandBool(cmdName string, defaultValue bool, usage string, fn CommandFunctionCB)
func RegisterCommandString ¶
func RegisterCommandString(cmdName string, defaultValue string, usage string, fn CommandFunctionCB)
Types ¶
type CommandFunctionCB ¶
type CommandFunctionCB func(args interface{}) error
Click to show internal directories.
Click to hide internal directories.