Documentation ¶
Index ¶
- Constants
- type AndPromise
- type ArgGetter
- type Argument
- type Constant
- type Context
- type EnvGetter
- type ExecPromise
- type ExecType
- type InDir
- type JoinArgument
- type Logger
- type NamedPromise
- type NewNotSupported
- type OrPromise
- type PipePromise
- type Promise
- type ReadvarPromise
- type ReadvarWriter
- type RestartPromise
- type SetEnv
- type SetvarError
- type SetvarPromise
- type TemplatePromise
- type VarGetter
- type Variables
Constants ¶
View Source
const (
ArgumentCount = SetvarError("(setvar) needs 2 arguments")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AndPromise ¶
type AndPromise struct {
Promises []Promise
}
func (AndPromise) Desc ¶
func (p AndPromise) Desc(arguments []Constant) string
type Context ¶
type Context struct { Logger *Logger ExecOutput *bytes.Buffer Vars Variables Args []string Env []string InDir string Debug bool }
func NewContext ¶
func NewContext() Context
type ExecPromise ¶
func (ExecPromise) Desc ¶
func (p ExecPromise) Desc(arguments []Constant) string
type JoinArgument ¶
type JoinArgument struct {
Args []Argument
}
func (JoinArgument) GetValue ¶
func (this JoinArgument) GetValue(arguments []Constant, vars *Variables) string
func (JoinArgument) String ¶
func (this JoinArgument) String() string
type NamedPromise ¶
func (NamedPromise) Desc ¶
func (p NamedPromise) Desc(arguments []Constant) string
func (NamedPromise) Eval ¶
func (p NamedPromise) Eval(arguments []Constant, ctx *Context, stack string) bool
func (NamedPromise) New ¶
func (p NamedPromise) New(children []Promise, args []Argument) (Promise, error)
func (NamedPromise) String ¶
func (p NamedPromise) String() string
type NewNotSupported ¶
type NewNotSupported string
func (NewNotSupported) Error ¶
func (e NewNotSupported) Error() string
type PipePromise ¶
type PipePromise struct {
Execs []ExecPromise
}
func (PipePromise) Desc ¶
func (p PipePromise) Desc(arguments []Constant) string
type ReadvarPromise ¶
func (ReadvarPromise) Desc ¶
func (p ReadvarPromise) Desc(arguments []Constant) string
type ReadvarWriter ¶
type ReadvarWriter struct {
// contains filtered or unexported fields
}
type RestartPromise ¶
type RestartPromise struct {
NewExe Argument
}
func (RestartPromise) Desc ¶
func (p RestartPromise) Desc(arguments []Constant) string
type SetvarError ¶
type SetvarError string
func (SetvarError) Error ¶
func (e SetvarError) Error() string
type SetvarPromise ¶
func (SetvarPromise) Desc ¶
func (p SetvarPromise) Desc(arguments []Constant) string
type TemplatePromise ¶
func (TemplatePromise) Desc ¶
func (t TemplatePromise) Desc(arguments []Constant) string
Click to show internal directories.
Click to hide internal directories.