runner

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2018 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option added in v1.1.0

type Option func(*Runner)

Option configures a runtime option.

func Config added in v1.1.0

func Config(config *config.Config) Option

Config returns an option configured with a config value.

func Engine added in v1.1.0

func Engine(engine backend.Engine) Option

Engine returns an option configured with a runner engine.

func Log added in v1.1.0

func Log(log *log.Logger) Option

Log returns an option configured with a log value.

func Once added in v1.1.0

func Once(once bool) Option

Once returns an option configured with a once value.

func Quiet added in v1.1.4

func Quiet(quiet bool) Option

Quiet returns an option configured with a quiet value.

func Verbose added in v1.1.0

func Verbose(verbose bool) Option

Verbose returns an option configured with a verbose value.

type Runner

type Runner struct {
	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
	// contains filtered or unexported fields
}

Runner represents a the runner.

func New added in v1.1.0

func New(opts ...Option) *Runner

New creates a new runner.

func (*Runner) Run

func (r *Runner) Run(id string) error

Run runs a task.

func (*Runner) Task

func (r *Runner) Task(name string) *task.Task

Task returns a task by name if it exists.

Jump to

Keyboard shortcuts

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