shell

package
v0.0.0-...-d472ff9 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2018 License: BSD-2-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

TODO: make this a method on shell.State

func Run

func Run(shellState *State, p Params, e *expr.Shell) (string, error)

func WindowSize

func WindowSize(fd uintptr) (rows, cols int, err error)

Types

type Job

type Job struct {
	State  *State
	Cmd    *expr.ShellList
	Stdin  *os.File
	Stdout *os.File
	Stderr *os.File
	Params Params
	// contains filtered or unexported fields
}

func (*Job) Continue

func (j *Job) Continue() error

func (*Job) Result

func (j *Job) Result() (done bool, err error)

func (*Job) Start

func (j *Job) Start() (err error)

func (*Job) Wait

func (j *Job) Wait() (done bool, err error)

Wait waits until the job is stopped or complete.

type Params

type Params interface {
	Get(name string) string
	Set(name, value string)
}

type State

type State struct {
	Env   *environ.Environ
	Alias *environ.Environ
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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