autocomplete

package
v0.0.0-...-873fb03 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotSupported = prompt.NewError("autocomplete for this terminal is not supported")
)

Functions

This section is empty.

Types

type BashCommand

type BashCommand struct {
	LastCommand string
	RootCommand string
	Commands    string
	Level       int
}

type CompletionCommand

type CompletionCommand struct {
	Content []string
	Before  string
}

type Generator

type Generator interface {
	Generate(s ShellName, cmd *cobra.Command) (string, error)
}

type GeneratorManager

type GeneratorManager struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(tm formula.TreeManager) GeneratorManager

func (GeneratorManager) Generate

func (d GeneratorManager) Generate(s ShellName, cmd *cobra.Command) (string, error)

type ShellName

type ShellName string

func (ShellName) String

func (s ShellName) String() string

Jump to

Keyboard shortcuts

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