Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetParamBeforeCurrent ¶
Types ¶
type Command ¶
type Command struct { Name string Flags []Flag SubCommands map[string]*Command Suggest func(d prompt.Document, args []string, opts Options) []prompt.Suggest }
func (*Command) AddCommand ¶
type Completer ¶
func CreateCompleter ¶
func (*Completer) GetSuggestions ¶
func (c *Completer) GetSuggestions(d prompt.Document) []prompt.Suggest
type Flag ¶
Framework for modeling suggestions In usage it is oriented on cobra Suggestions are modeled as commands for which they give the suggestions Execute shows if a subcommand is registered matching the first argument and then recursivly calls itself on the subcommand Otherwhise the Suggest of the current command will be called
Click to show internal directories.
Click to hide internal directories.