exec

package
v0.9.3-testnet Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2018 License: MIT Imports: 13 Imported by: 0

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 Execute

func Execute(cmd, args string)

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