commander

package
v0.0.0-...-cf45389 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type Commander

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

func NewCommander

func NewCommander(client scproto.SoftcopyClient) *Commander

func (*Commander) Completer

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

func (*Commander) Executor

func (c *Commander) Executor(s string)

func (*Commander) LivePrefix

func (c *Commander) LivePrefix() (string, bool)

func (*Commander) Startup

func (c *Commander) Startup() error

type ParserCmd

type ParserCmd interface {
	Description() string
	Execute(s string) error
	Suggestions(d prompt.Document) []prompt.Suggest
	SubCommands() map[string]ParserCmd
}

type Writer

type Writer interface {
	io.Writer

	Printf(format string, args ...interface{})
}

Jump to

Keyboard shortcuts

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