Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCobraCommand ¶
Types ¶
type ICommandList ¶
type ICommandList []ICommand
type XCli ¶ added in v1.2.7
type XCli struct {
// contains filtered or unexported fields
}
func NewXCli ¶ added in v1.2.7
func NewXCli(name string, opts ...XCliOption) *XCli
type XCliOption ¶ added in v1.2.7
type XCliOption interface {
// contains filtered or unexported methods
}
func WithCommandList ¶ added in v1.2.7
func WithCommandList(cmdList ICommandList) XCliOption
func WithHandleUnknownCommand ¶ added in v1.2.8
func WithHandleUnknownCommand(handleUnknownCommand func(ctx context.Context, args []string) error) XCliOption
func WithLong ¶ added in v1.2.7
func WithLong(long string) XCliOption
func WithShort ¶ added in v1.2.7
func WithShort(short string) XCliOption
type XCliOptionFunc ¶ added in v1.2.7
type XCliOptionFunc func(opt *XCliOptions)
type XCliOptions ¶ added in v1.2.7
type XCliOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.