completion

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdCompletion

type CmdCompletion struct {
	Completion
	Postfix string
}

func (CmdCompletion) Call

func (C CmdCompletion) Call(ctx context.Context, B *rl.Buffer) rl.Result

func (CmdCompletion) String

func (C CmdCompletion) String() string

type CmdCompletionOrList

type CmdCompletionOrList struct {
	Completion
	Postfix string
}

func (CmdCompletionOrList) Call

func (CmdCompletionOrList) String

func (C CmdCompletionOrList) String() string

type Completion

type Completion interface {
	Delimiters() string
	Enclosures() string
	List(fields []string) (fullnames, basenames []string)
}

type File

type File struct{}

func (File) Delimiters

func (File) Delimiters() string

func (File) Enclosures

func (File) Enclosures() string

func (File) List

func (File) List(field []string) (fullnames []string, basenames []string)

Jump to

Keyboard shortcuts

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