m-lab / go

General purpose libraries / APIs for use in mlab code.
Apache License 2.0
5 stars 6 forks source link

Add Func and Script Job types #132

Closed stephen-soltesz closed 3 years ago

stephen-soltesz commented 3 years ago

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 is Reviewable

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 1005


Totals Coverage Status
Change from base Build 998: 0.4%
Covered Lines: 1785
Relevant Lines: 1915

💛 - Coveralls