Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Completer ¶
type Completer struct {
// contains filtered or unexported fields
}
Completer struct for tab completion
func NewCompleter ¶
NewCompleter creates a new Completer with given client
func (*Completer) Complete ¶
func (c *Completer) Complete(text string) []Suggestion
Complete returns completion suggestions for the given input text.
func (*Completer) PromptPrefix ¶
PromptPrefix returns the currently active prompt prefix string.
func (*Completer) TogglePathCompletion ¶
func (c *Completer) TogglePathCompletion()
TogglePathCompletion enable/disable path auto-completion
type Suggestion ¶
Suggestion holds a completion candidate with an optional description.
Click to show internal directories.
Click to hide internal directories.