completer

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const LIMIT_SUGGEST = 5

Variables

This section is empty.

Functions

func NewContextCommand

func NewContextCommand() *command.Command

func NewExtendedEventCommand added in v0.0.2

func NewExtendedEventCommand() *command.Command

func NewExtendedForceDelCommand added in v0.0.2

func NewExtendedForceDelCommand() *command.Command

func NewExtendedSecretCommand added in v0.0.3

func NewExtendedSecretCommand() *command.Command

func NewExtendedStatusCommand

func NewExtendedStatusCommand() *command.Command

func NewExtendedTreeCommand added in v0.0.2

func NewExtendedTreeCommand() *command.Command

func NewKubeApplyCommand

func NewKubeApplyCommand() *command.Command

func NewKubeDeleteCommand

func NewKubeDeleteCommand() *command.Command

func NewKubeDescribeCommand

func NewKubeDescribeCommand() *command.Command

func NewKubeEditCommand

func NewKubeEditCommand() *command.Command

func NewKubeExecCommand

func NewKubeExecCommand() *command.Command

func NewKubeGetCommand

func NewKubeGetCommand() *command.Command

func NewKubeLogsCommand

func NewKubeLogsCommand() *command.Command

func NewSystemCommand

func NewSystemCommand() []*command.Command

func NewUseCommand

func NewUseCommand() *command.Command

func WarpHelp

func WarpHelp(f func(cmd *command.ExecCmd)) func(cmd *command.ExecCmd)

func WarpIgnoreNilParamHelp

func WarpIgnoreNilParamHelp(f func(cmd *command.ExecCmd)) func(cmd *command.ExecCmd)

Types

type Completer

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

func NewCompleter

func NewCompleter() *Completer

func (*Completer) Complete

func (c *Completer) Complete(d prompt.Document) []prompt.Suggest

func (*Completer) Exec

func (c *Completer) Exec(cmd string)

func (*Completer) Help

func (c *Completer) Help()

func (*Completer) Registry

func (c *Completer) Registry(cmd ...*command.Command)

type DevNullWrite added in v0.0.2

type DevNullWrite struct {
}

func (*DevNullWrite) Write added in v0.0.2

func (w *DevNullWrite) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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