2 releases
0.1.1 | Dec 18, 2022 |
---|---|
0.1.0 | Dec 18, 2022 |
#21 in #stop
7KB
125 lines
multi
Making parallel bash commands elegant ✨.
Suppose we want to run the two commands
run_unit_tests
run_integration_tests
We can instead re-write this as
multi -c "run_unit_tests" -c "run_integration_tests"
To the end-user, nothing will occur differenly.
However, the commands are actually executed in parallel.
The order of the stdout
and stderr
of the commands are preserved and an error in one command will stop other
commands. This is similar to the principal of Structured Concurrency.
Dependencies
~3.5–9.5MB
~92K SLoC