Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Completion ¶
type Completion struct { Shell string `arg:"" help:"The name of the shell you are using" enum:"bash,zsh,fish," default:""` Code bool `short:"c" help:"Generate the initialization code"` }
Completion is a kong subcommand that prints out the shell code for initializing tab completion in various shells. It also educates the user what to do with the printed code.
func (*Completion) Help ¶
func (c *Completion) Help() string
Help is a predefined kong method for printing the help text.
type Option ¶
type Option func(*options)
Option is a configuration option for running Register
func WithErrorHandler ¶
WithErrorHandler handle errors with completions
func WithExitFunc ¶
WithExitFunc the exit command that is run after completions
func WithFlagOverrides ¶ added in v0.0.5
WithFlagOverrides registers overrides for hidden commands / flags
func WithPredictor ¶
WithPredictor use the named predictor
Source Files ¶
Click to show internal directories.
Click to hide internal directories.