8 releases
0.3.2 | Oct 4, 2024 |
---|---|
0.3.1 | Oct 4, 2024 |
0.2.0 | Sep 26, 2024 |
0.1.3 | Sep 14, 2024 |
#1560 in Command line utilities
44KB
245 lines
parallelrun
Runs several commands concurrently.
Heavily inspired by the nodejs
tool concurrently.
Supported and tested on Linux, MacOS and Windows.
Supported Options:
--kill-others
(terminates all other commands as soon as one exits)
Demo
Installation
cargo install parallelrun
Example
$ parallelrun --kill-others "echo wait 2 && sleep 2" "echo wait 3 && sleep 3"
[0] wait 2
[1] wait 3
[0] echo wait 2 && sleep 2 exited with code 0
--> Sending SIGTERM to other processes..
[1] echo wait 3 && sleep 3 exited with code SIGTERM
TODO
- support more
concurrently
arguments
Dependencies
~3MB
~56K SLoC