completer

package
v0.12.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 6 Imported by: 0

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

func NewCompleter(client *client.Client, disableAutoCompletion bool) *Completer

NewCompleter creates a new Completer with given client

func (*Completer) Complete

func (c *Completer) Complete(in prompt.Document) (result []prompt.Suggest)

Complete suggestions for completion

func (*Completer) PromptPrefix

func (c *Completer) PromptPrefix() (string, bool)

PromptPrefix returns the currently active prompt prefix

func (*Completer) TogglePathCompletion added in v0.7.0

func (c *Completer) TogglePathCompletion()

TogglePathCompletion enable/disable path auto-completion

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL