Documentation ¶
Index ¶
- func NewLib() interfaces.Cli
- func NewParsingContext(ctx interface{}) interfaces.ParsingContext
- type Blankconfig
- type Modules
- func (c *Modules) Before(cc *cli.Context, callback func(ctx interface{}) (err error)) error
- func (c *Modules) Block(gcpercent int, loop time.Duration) (err error)
- func (c *Modules) GenerateConfig(cfg interface{}, output string)
- func (c *Modules) Init(options interfaces.Options)
- func (c *Modules) ParsingContext(ctx interface{}) interfaces.ParsingContext
- 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))
- type ParsingContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLib ¶
func NewLib() interfaces.Cli
func NewParsingContext ¶ added in v0.0.6
func NewParsingContext(ctx interface{}) interfaces.ParsingContext
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) ParsingContext ¶ added in v0.0.6
func (c *Modules) ParsingContext(ctx interface{}) interfaces.ParsingContext
func (*Modules) RunWithBlock ¶
func (*Modules) SetCommand ¶
func (c *Modules) SetCommand(sub []*interfaces.Command)
func (*Modules) SetDefaultAction ¶
type ParsingContext ¶ added in v0.0.6
type ParsingContext struct {
// contains filtered or unexported fields
}
func (*ParsingContext) ArgumentsFirst ¶ added in v0.0.6
func (c *ParsingContext) ArgumentsFirst() (val string, err error)
Click to show internal directories.
Click to hide internal directories.