Documentation
¶
Overview ¶
Package task provides a registry for tasks to be used by commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
Context context.Context
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
Obj cue.Value
Err errors.Error
}
A Context 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(ctx *Context) (results interface{}, err error)
}
A Runner defines a command type.
type RunnerFunc ¶
A RunnerFunc creates a Runner.
Click to show internal directories.
Click to hide internal directories.