Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatBaseName ¶
Types ¶
type CliOptions ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func NewCommand(usage string, desc string, opts ...CommandOption) *Command
func (*Command) AddCommand ¶
type CommandOption ¶
type CommandOption func(*Command)
func WithCommandOptions ¶
func WithCommandOptions(opt CliOptions) CommandOption
func WithCommandRunFunc ¶
func WithCommandRunFunc(run RunCommandFunc) CommandOption
type CompleteableOptions ¶
type CompleteableOptions interface {
Complete() error
}
type Option ¶
type Option func(app *App)
func WithDefaultValidArgs ¶
func WithDefaultValidArgs() Option
func WithDescription ¶
func WithNoConfig ¶
func WithNoConfig() Option
func WithOptions ¶
func WithOptions(opt CliOptions) Option
func WithRunFunc ¶
func WithValidArgs ¶
func WithValidArgs(args cobra.PositionalArgs) Option
type RunCommandFunc ¶
Click to show internal directories.
Click to hide internal directories.