shell

package
v0.0.0-...-b83a777 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2017 License: BSD-2-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Env   *environ.Environ
	Alias *environ.Environ
)

Functions

func ExpandParams

func ExpandParams(arg string, params paramset) (string, error)

ExpandParams expands $ variables.

func ExpandTilde

func ExpandTilde(arg string) (res string, err error)

func Init

func Init()

func WindowSize

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

Types

type Job

type Job struct {
	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)
}

Jump to

Keyboard shortcuts

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