commands

package
v0.104.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Spaces = " \t\n\v\f\r\x85\xA0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Run(prompt string) error
	Prefix() string
	// contains filtered or unexported methods
}

type Commands

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

Commands represents all known commands

func New

func New(ctx context.Context, isc index.ServiceClient) *Commands

func (*Commands) GetCommand

func (cs *Commands) GetCommand(prompt string) (Command, error)

returns a command by its name

func (*Commands) ListCommandsNames

func (cs *Commands) ListCommandsNames() []string

returns list of all known commands

Jump to

Keyboard shortcuts

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