#terminal #cli #ui #tui #process

app parallelrun

Runs several commands concurrently

4 releases

new 0.1.3 Sep 14, 2024
0.1.2 Sep 14, 2024
0.1.1 Sep 14, 2024
0.1.0 Sep 14, 2024

#491 in Command line utilities

Download history 200/week @ 2024-09-09

200 downloads per month

MIT license

8KB
120 lines

parallelrun

crates.io ci discord

Runs several commands concurrently.

Heavily inspired by the nodejs tool concurrently.

Supported Options:

  • --kill-others (terminates all other commands as soon as one exits)

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

  • forward SIGINT to subprocesses instead of instant kill on Ctrl+C
  • windows support
  • support more concurrently arguments

Dependencies

~3.5MB
~69K SLoC