exec

package
v2.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 19 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 EnableVerbose

func EnableVerbose()

func EnableWatch

func EnableWatch()

func Execute

func Execute(cmd, args string)

func GetBatchErrorCount

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, uint64, []*types.Event, error) // message, gas used, events, 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