Documentation ¶
Index ¶
- Variables
- type AutocompleteFunc
- type Cli
- func (c *Cli) Args() []string
- func (c *Cli) DecorateArg(arg string) string
- func (c *Cli) DecorateArgs(inputs []config.Arg) []string
- func (c *Cli) DecorateCommand(command string) string
- func (c *Cli) DecorateCommandPath(commandPath []string) []string
- func (c *Cli) DecorateFlag(flag config.Flag) string
- func (c *Cli) DecorateFlags(inputs []config.Flag) []string
- func (c *Cli) DecorateGlobalFlag(flag string) string
- func (c *Cli) DecorateHeader(header string) string
- func (c *Cli) DecorateUsageError(header string) string
- func (c *Cli) Flags() []kit.Flag
- func (c *Cli) GetCommand(ctx context.Context, plugin config.Plugin, args []string) (*Command, error)
- func (c *Cli) GetManifest(ctx context.Context, plugin config.Plugin) (config.Manifest, error)
- func (c *Cli) Options() introspect.Options
- func (c *Cli) Parse(args []string) error
- func (c *Cli) PrintHelp(commands []*Command) error
- func (c *Cli) SetNamespaceUsage(commandPath []string, usage string)
- func (c *Cli) Theme() introspect.Theme
- type Command
- type Kit
- type Loader
- func (l *Loader) FindPlugin(ctx context.Context, plugin config.Plugin, args []string) (config.Plugin, int, error)
- func (l *Loader) GetCommand(ctx context.Context, plugin config.Plugin, args []string) (*Command, error)
- func (l *Loader) GetManifest(ctx context.Context, plugin config.Plugin) (config.Manifest, error)
- type VerifyFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var HelpTemplate = `` /* 702-byte string literal not displayed */
Functions ¶
This section is empty.
Types ¶
type AutocompleteFunc ¶
type AutocompleteFunc func(ctx context.Context, input string) []kit.Completion
func AutocompleteCommand ¶
func AutocompleteCommand(kitCmd kit.Command, args []string, depth int) AutocompleteFunc
func AutocompleteNamespace ¶
func AutocompleteNamespace(cliCmd *Command, args []string, depth int) AutocompleteFunc
type Cli ¶
type Cli struct { NamespacePath []string NamespaceUsage string Commands []*Command UsageError error // contains filtered or unexported fields }
func (*Cli) DecorateArg ¶
func (*Cli) DecorateCommand ¶
func (*Cli) DecorateCommandPath ¶
func (*Cli) DecorateGlobalFlag ¶
func (*Cli) DecorateHeader ¶
func (*Cli) DecorateUsageError ¶
func (*Cli) GetCommand ¶
func (*Cli) GetManifest ¶
func (*Cli) Options ¶
func (c *Cli) Options() introspect.Options
func (*Cli) SetNamespaceUsage ¶
func (*Cli) Theme ¶
func (c *Cli) Theme() introspect.Theme
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func (*Loader) FindPlugin ¶
func (*Loader) GetCommand ¶
type VerifyFunc ¶
func VerifyCommand ¶
func VerifyCommand(cliCmd *Command, kitCmd kit.Command, args []string) VerifyFunc
func VerifyNamespace ¶
func VerifyNamespace(cliCmd *Command, args []string, depth int) VerifyFunc
Click to show internal directories.
Click to hide internal directories.