runner

package
v0.0.0-...-f2d0646 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForceRun

func ForceRun(exe string, args ...string)

ForceRun runs 'exe [args...]' in current working directory, and d.Chk()s on failure. Inherits the environment of the current process.

func ForceRunInDir

func ForceRunInDir(dir string, env Env, exe string, args ...string)

ForceRunInDir runs 'exe [args...]' in the given directory, and d.Chk()s on failure. Inherits the environment of the current process.

func RunInDir

func RunInDir(out, err io.Writer, dir, exe string, args ...string) error

RunInDir runs 'exe [args...]' in the given directory, returning any failure. The child's stdout and stderr are mapped to out and err respectively. Inherits the environment of the current process.

func Serial

func Serial(stdout, stderr io.Writer, env Env, dir, filename string, args ...string) bool

Serial serially runs all instances of filename found under dir, mapping stdout and stderr to each subprocess in the obvious way. env is overlaid on the environment of the current process. If args are provided, they're passed en masse to each subprocess.

Types

type Env

type Env map[string]string

Env is a map of env vars, mapping key string to value string.

Jump to

Keyboard shortcuts

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