package
Version:
v0.0.5
Opens a new window with list of versions in this module.
Published: Aug 21, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
type Cli interface {
Init(opt Options)
SetConfig(cfg interface{})
GenerateConfig(cfg interface{}, output string)
SetDefaultAction(callback func(ctx interface{}) (err error))
SetCommand(subcommand []*Command)
Run() (err error)
RunWithBlock(gcpercent int, loop time.Duration) (err error)
}
type Command struct {
EnvConfigName string
Config interface{}
Name string
Description string
Action func(ctx interface{}) (err error)
SubCommand []*Command
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.