exec

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2019 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Broker

func Broker(cmdStr string)

func Candidates

func Candidates(cmd string, chunks []context.Chunk, current int, symbol string) map[string]string

func EnableVerbose added in v0.9.0

func EnableVerbose()

func EnableWatch added in v0.9.0

func EnableWatch()

func Execute

func Execute(cmd, args string)

func GetBatchErrorCount added in v0.9.0

func GetBatchErrorCount() int

func Index

func Index(symbol, text string)

Types

type Executor

type Executor interface {
	Command() string
	Syntax() string
	Usage() string
	Describe() string
	Validate(args string) error
	Run(args string) (string, error)
}

func AllExecutors

func AllExecutors() []Executor

func GetExecutor

func GetExecutor(cmd string) Executor

Jump to

Keyboard shortcuts

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