Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRunner ¶ added in v0.3.1
func RegisterRunner(key string, f RunnerFunc)
RegisterRunner registers a task for cue commands.
func RegisterTask ¶
RegisterTask register task for appfile
Types ¶
type Meta ¶ added in v0.3.1
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 ¶ added in v0.3.1
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 ¶ added in v0.3.1
RunnerFunc creates a Runner.
func LookupRunner ¶ added in v0.3.1
func LookupRunner(key string) RunnerFunc
LookupRunner returns the RunnerFunc for a key.
Click to show internal directories.
Click to hide internal directories.