Versions in this module Expand all Collapse all v0 v0.1.0 Sep 28, 2021 Changes in this version + func FormatBaseName(basename string) string + func WordSepNormalizeFunc(_ *pflag.FlagSet, name string) pflag.NormalizedName + type App struct + func NewApp(name string, basename string, opts ...Option) *App + func (a *App) AddCommand(cmd *Command) + func (a *App) AddCommands(cmds ...*Command) + func (a *App) Command() *cobra.Command + func (a *App) Run() + type CliOptions interface + Flags func() (fss cliflag.NamedFlagSets) + Validate func() []error + type Command struct + func NewCommand(usage string, desc string, opts ...CommandOption) *Command + func (c *Command) AddCommand(cmd *Command) + func (c *Command) AddCommands(cmds ...*Command) + type CommandOption func(*Command) + func WithCommandOptions(opt CliOptions) CommandOption + func WithCommandRunFunc(run RunCommandFunc) CommandOption + type CompleteableOptions interface + Complete func() error + type ConfigurableOptions interface + ApplyFlags func() []error + type Option func(*App) + func WithDefaultValidArgs() Option + func WithDescription(desc string) Option + func WithNoConfig() Option + func WithNoVersion() Option + func WithOptions(opt CliOptions) Option + func WithRunFunc(run RunFunc) Option + func WithSilence() Option + func WithValidArgs(args cobra.PositionalArgs) Option + type PrintableOptions interface + String func() string + type RunCommandFunc func(args []string) error + type RunFunc func(basename string) error