Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Arg ¶ added in v0.2.3
type Arg struct { Kind ArgKind `yaml:"kind"` Choices []string `yaml:"choices"` Cmd []string `yaml:"cmd"` }
func (*Arg) ExpectsValue ¶ added in v0.2.3
type CommandSuggestion ¶ added in v0.2.3
type CommandSuggestion struct { Description string `yaml:"description"` SubCommands map[string]CommandSuggestion `yaml:"subcommands"` // Flags is only used to determine if a flag expects a value, or when the arg to be completed starts with a dash. Flags map[string]FlagSuggestion `yaml:"flags"` Args Arg `yaml:"args"` }
func (*CommandSuggestion) Suggest ¶ added in v0.2.3
func (s *CommandSuggestion) Suggest(args []string, completeLast bool) []prompt.Suggest
type EmptySuggestor ¶ added in v0.2.3
type EmptySuggestor struct{}
func (*EmptySuggestor) Suggest ¶ added in v0.2.3
func (s *EmptySuggestor) Suggest([]string, bool) []prompt.Suggest
type FlagSuggestion ¶ added in v0.2.3
type Option ¶
func OptionDisablePrompt ¶
func OptionDisablePrompt() Option
func OptionFrozen ¶
func OptionHistory ¶
func OptionStderr ¶
func OptionStdin ¶
func OptionStdout ¶
func OptionSuggestor ¶ added in v0.2.3
Click to show internal directories.
Click to hide internal directories.