Closed stephen-soltesz closed 3 years ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
shx/job.go | 115 | 120 | 95.83% | ||
<!-- | Total: | 115 | 120 | 95.83% | --> |
Totals | |
---|---|
Change from base Build 967: | 0.2% |
Covered Lines: | 1695 |
Relevant Lines: | 1827 |
An example command using shx: https://github.com/m-lab/locate/blob/soltesz-shx-experiment/management/create_encrypted_signer_key.go
An example description of that command: https://github.com/m-lab/locate/blob/soltesz-shx-experiment/management/description_script.sh
This change adds a new package
shx
that provides shell-like operations for Go. Ultimately,shx
is intended to replace M-Lab's use of them-lab/pipe
package because this package is a modified fork of a 7 year old, unmaintained package fromgithub.com/go-pipe/pipe
with several limitations.The
shx
package overcomes these limitations with the following features:context.Context
for job cancellation or limits.Description
of jobs.shx
types.This change is 1 of two or three to add more primitive types described in the package docstring: Exec, System, Func, Pipe, Script, with various convenience Jobs for common shell operations.
This change is