completion

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCompletion

func AddCompletion(value, description string, prefix string)

AddCompletion prints the possible completion if it matches the prefix.

Types

type Env

type Env struct {
	Line  string
	Point int
	Type  int
	Key   int
}

Env contains the information passed by the shell in environment variables.

func (*Env) Init

func (env *Env) Init() bool

func (*Env) LeadingWords

func (env *Env) LeadingWords() []string

func (*Env) WriteCompletions

func (env *Env) WriteCompletions(command interface{}, words []string)

Jump to

Keyboard shortcuts

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