commands

package
v0.0.0-...-e712342 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2014 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExitCMD = errors.New("USer requested exit via Command")
View Source
var ExitEOF = errors.New("User requested exit via EOF")

Functions

func MatchInput

func MatchInput(cmd string) []completion.Match

func Run

func Run(p *attached.Process, cmd string, params []string) error

Types

type CmdFn

type CmdFn func(p *attached.Process, args ...string) error

type CommandDef

type CommandDef struct {
	Func     CmdFn
	Help     string
	Complete completion.CompleteParamsFunc
}

Jump to

Keyboard shortcuts

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