parallelrun

Crates.ioparallelrun
lib.rsparallelrun
version0.3.2
sourcesrc
created_at2024-09-14 13:06:08.527168
updated_at2024-10-04 09:18:38.355964
descriptionRuns several commands concurrently
homepagehttps://github.com/rustunit/parallelrun
repositoryhttps://github.com/rustunit/parallelrun
max_upload_size
id1374754
size59,649
(extrawurst)

documentation

README

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
Commit count: 26

cargo fmt