completion

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultStyleConfig

func DefaultStyleConfig()

DefaultStyleConfig sets some default styles for completion.

func SplitArgs

func SplitArgs(line []rune, pos int) (args []string, prefixComp, prefixLine string)

SplitArgs splits the line in valid words, prepares them in various ways before calling the completer with them, and also determines which parts of them should be used as prefixes, in the completions and/or in the line.

func UnescapeValue

func UnescapeValue(prefixComp, prefixLine, val string) string

when the completer has returned us some completions, we sometimes needed to post-process them a little before passing them to our shell.

Types

This section is empty.

Jump to

Keyboard shortcuts

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