Documentation ¶
Index ¶
- Variables
- func NewLib() interfaces.Cli
- type Blankconfig
- type Modules
- func (c *Modules) Before(cc *cli.Context, callback func(ctx interface{}) (err error)) error
- func (c *Modules) GenerateConfig(cfg interface{}, output string)
- func (c *Modules) Init(options interfaces.Options)
- func (c *Modules) Run() (err error)
- func (c *Modules) RunWithBlock(gcpercent int, loop time.Duration) (err error)
- func (c *Modules) SetCommand(sub []*interfaces.Command)
- func (c *Modules) SetConfig(cfg interface{})
- func (c *Modules) SetDefaultAction(callback func(ctx interface{}) (err error))
Constants ¶
This section is empty.
Variables ¶
View Source
var BuildDate string
View Source
var Commit string
View Source
var OSBuildName string
View Source
var Version string
Functions ¶
func NewLib ¶
func NewLib() interfaces.Cli
Types ¶
type Modules ¶
type Modules struct { Options interfaces.Options sync.RWMutex // contains filtered or unexported fields }
func (*Modules) GenerateConfig ¶
func (*Modules) Init ¶
func (c *Modules) Init(options interfaces.Options)
func (*Modules) RunWithBlock ¶
func (*Modules) SetCommand ¶
func (c *Modules) SetCommand(sub []*interfaces.Command)
func (*Modules) SetDefaultAction ¶
Click to show internal directories.
Click to hide internal directories.