Documentation ¶ Index ¶ func DefAlias(name, arg string) type Cmd type Evaluator func New(in io.Reader, out, err io.Writer, db *sqlx.DB) *Evaluator func (e *Evaluator) CommandContext(ctx context.Context, name string, arg ...string) Cmd func (e *Evaluator) Eval(stmts []ast.Stmt) error 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 Source Files ¶ View all Source files alias.go builtin.go command.go eval.go Click to show internal directories. Click to hide internal directories.