Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRunner ¶
func RegisterRunner(key string, f RunnerFunc)
RegisterRunner registers a task for cue commands.
func RegisterTask ¶
RegisterTask register task for appfile
Types ¶
type Meta ¶
type Meta struct {
Context context.Context
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
Obj cue.Value
Err error
}
Meta provides context for running a task.
type Runner ¶
type Runner interface {
// Runner runs given the current value and returns a new value which is to
// be unified with the original result.
Run(meta *Meta) (results interface{}, err error)
}
Runner defines a command type.
type RunnerFunc ¶
RunnerFunc creates a Runner.
func LookupRunner ¶
func LookupRunner(key string) RunnerFunc
LookupRunner returns the RunnerFunc for a key.
Click to show internal directories.
Click to hide internal directories.