eval

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefAlias

func DefAlias(name, arg string)

Types

type Cmd

type Cmd interface {
	Run() error
	Start() error
	Wait() error
	StderrPipe() (io.ReadCloser, error)
	StdinPipe() (io.WriteCloser, error)
	StdoutPipe() (io.ReadCloser, error)
	SetStderr(io.Writer)
	SetStdin(io.Reader)
	SetStdout(io.Writer)
	SetEnv([]string)
}

type Evaluator

type Evaluator struct {
	ExitCh chan int
	// contains filtered or unexported fields
}

func New

func New(in io.Reader, out, err io.Writer, db *sqlx.DB) *Evaluator

func (*Evaluator) CommandContext

func (e *Evaluator) CommandContext(ctx context.Context, name string, arg ...string) Cmd

func (*Evaluator) Eval

func (e *Evaluator) Eval(stmts []ast.Stmt) error

Jump to

Keyboard shortcuts

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