Documentation ¶
Index ¶
- func NewLib() interfaces.Cli
- func NewParsingContext(ctx interface{}) interfaces.ParsingContext
- type DefaultConfig
- 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) GetVersion() *interfaces.Version
- func (c *Modules) Init(options interfaces.Options)
- func (c *Modules) ParsingContext(ctx interface{}) interfaces.ParsingContext
- func (c *Modules) RegisterClean(inputs ...any)
- func (c *Modules) Run(inputs ...any) (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))
- func (c *Modules) ShowVersion()
- func (c *Modules) WaitAndShutdown()
- type ParsingContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewParsingContext ¶
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) GetVersion ¶ added in v1.0.1002
func (c *Modules) GetVersion() *interfaces.Version
func (*Modules) Init ¶
func (c *Modules) Init(options interfaces.Options)
func (*Modules) ParsingContext ¶
func (c *Modules) ParsingContext(ctx interface{}) interfaces.ParsingContext
func (*Modules) RegisterClean ¶
func (*Modules) SetCommand ¶
func (c *Modules) SetCommand(sub []*interfaces.Command)
func (*Modules) SetDefaultAction ¶
func (*Modules) WaitAndShutdown ¶
func (c *Modules) WaitAndShutdown()
type ParsingContext ¶
type ParsingContext struct {
// contains filtered or unexported fields
}
func (*ParsingContext) ArgumentsFirst ¶
func (c *ParsingContext) ArgumentsFirst() (val string, err error)
Click to show internal directories.
Click to hide internal directories.