#command #run-command #parallel #bash #stop #order

app multi

An easy way to run multiple commands in parallel

2 releases

0.1.1 Dec 18, 2022
0.1.0 Dec 18, 2022

#25 in #stop

37 downloads per month

MIT/Apache

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

~4–11MB
~94K SLoC