Skip to content

Rust cli tool for running multiple commands in parallel

License

Notifications You must be signed in to change notification settings

rustunit/parallelrun

Repository files navigation

parallelrun

crates.io ci discord

logo

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

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