cmdrunner

package
v0.14.1-0...-8b31b97 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	Wait() error
	Start() error
	Signal(os.Signal)
	Write(data []byte) (n int, err error)
}

type Option

type Option func(*Runner)

func DefaultStderr

func DefaultStderr(w io.Writer) Option

func DefaultStdout

func DefaultStdout(w io.Writer) Option

func DefaultWorkdir

func DefaultWorkdir(path string) Option

func EndSignal

func EndSignal(s os.Signal) Option

EndSignal configures s to be signaled to the processes to end them.

func RunParallel

func RunParallel() Option

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func New

func New(options ...Option) *Runner

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, steps ...*step.Step) error

Run blocks until all steps have completed their executions.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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