completer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: MIT Imports: 5 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(text string) []Suggestion

Complete returns completion suggestions for the given input text.

func (*Completer) PromptPrefix

func (c *Completer) PromptPrefix() string

PromptPrefix returns the currently active prompt prefix string.

func (*Completer) TogglePathCompletion

func (c *Completer) TogglePathCompletion()

TogglePathCompletion enable/disable path auto-completion

type Suggestion

type Suggestion struct {
	Text        string
	Description string
}

Suggestion holds a completion candidate with an optional description.

Jump to

Keyboard shortcuts

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