sh

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2016 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

View Source
const (
	StringType objType = iota + 1
	FnType
	ListType
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Fn

type Fn interface {
	Name() string
	ArgNames() []string

	Runner

	String() string
}

type FnObj

type FnObj struct {
	// contains filtered or unexported fields
}

func NewFnObj

func NewFnObj(val Fn) *FnObj

func (*FnObj) Fn

func (o *FnObj) Fn() Fn

func (*FnObj) String

func (o *FnObj) String() string

func (FnObj) Type

func (o FnObj) Type() objType

type ListObj

type ListObj struct {
	// contains filtered or unexported fields
}

func NewListObj

func NewListObj(val []Obj) *ListObj

func (*ListObj) List

func (o *ListObj) List() []Obj

func (*ListObj) String

func (o *ListObj) String() string

func (ListObj) Type

func (o ListObj) Type() objType

type Obj

type Obj interface {
	Type() objType
	String() string
}

type Runner

type Runner interface {
	Start() error
	Wait() error
	Results() Obj

	SetArgs([]Obj) error
	SetEnviron([]string)
	SetStdin(io.Reader)
	SetStdout(io.Writer)
	SetStderr(io.Writer)

	StdoutPipe() (io.ReadCloser, error)

	Stdin() io.Reader
	Stdout() io.Writer
	Stderr() io.Writer
}

type StrObj

type StrObj struct {
	// contains filtered or unexported fields
}

func NewStrObj

func NewStrObj(val string) *StrObj

func (*StrObj) Str

func (o *StrObj) Str() string

func (*StrObj) String

func (o *StrObj) String() string

func (StrObj) Type

func (o StrObj) Type() objType

Jump to

Keyboard shortcuts

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