This change continues the addition of the shx package started in https://github.com/m-lab/go/pull/131, meant to replace the m-lab/pipe package with better implementations and extensibility.
This change adds two types, FuncJob and ScriptJob. FuncJob is used to create a small set of helper functions: Chdir, SetEnv, SetEnvFromJob. ScriptJob is used to compose and execute a sequence of Jobs of any type. New unit tests and examples illustrate usage.
This change continues the addition of the
shx
package started in https://github.com/m-lab/go/pull/131, meant to replace them-lab/pipe
package with better implementations and extensibility.This change adds two types,
FuncJob
andScriptJob
.FuncJob
is used to create a small set of helper functions:Chdir
,SetEnv
,SetEnvFromJob
.ScriptJob
is used to compose and execute a sequence of Jobs of any type. New unit tests and examples illustrate usage.This change is