Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithDefaultErrorHandler ¶
func WithDefaultErrorHandler(handler ErrorHandler)
func WithRunFunc ¶ added in v0.62.1
Types ¶
type Blueprint ¶ added in v0.62.1
type Blueprint struct {
Cmd []string
Args []string
Flags []BlueprintFlag
}
func NewBlueprint ¶ added in v0.62.1
type BlueprintFlag ¶ added in v0.62.1
type BlueprintFlag struct {
Key string
CustomKey string
Value string
AppOptions []application.Option
}
type Cmd ¶ added in v0.62.1
type Cmd struct {
Name string
Flags []Flag
AppOptions []application.Option
ModuleFactory kernelPkg.ModuleFactory
}
type ErrorHandler ¶
type Group ¶ added in v0.62.1
type Group struct {
Name string
Flags []Flag
AppOptions []application.Option
// contains filtered or unexported fields
}
type Input ¶ added in v0.62.1
Input contains the parsed command line arguments and flags.
func NewInput ¶ added in v0.62.1
func NewInput() *Input
NewInput parses the current process command line arguments.
func NewInputWithArgs ¶ added in v0.62.1
type LogHandler ¶ added in v0.62.1
type LogHandler struct {
}
func (LogHandler) ChannelLevel ¶ added in v0.62.1
func (l LogHandler) ChannelLevel(name string) (level *int, err error)
func (LogHandler) Level ¶ added in v0.62.1
func (l LogHandler) Level() int
type Option ¶ added in v0.62.1
type Option func(cli *Cli)
func WithAppOptions ¶ added in v0.62.1
func WithAppOptions(option ...application.Option) Option
func WithVersion ¶ added in v0.62.1
type Router ¶ added in v0.62.1
type Router struct {
// contains filtered or unexported fields
}
func (*Router) DefaultCmd ¶ added in v0.62.1
Click to show internal directories.
Click to hide internal directories.