Crates.io | multi |
lib.rs | multi |
version | 0.1.1 |
source | src |
created_at | 2022-12-18 05:39:12.314252 |
updated_at | 2022-12-18 23:28:31.568507 |
description | An easy way to run multiple commands in parallel |
homepage | |
repository | |
max_upload_size | |
id | 740254 |
size | 19,500 |
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.