| Crates.io | command-pool |
| lib.rs | command-pool |
| version | 0.0.2 |
| created_at | 2025-08-06 17:16:14.923769+00 |
| updated_at | 2025-08-06 17:33:17.990464+00 |
| description | A powerful and intuitive command-line tool to execute a series of commands in parallel. |
| homepage | https://github.com/worktools/command-pool |
| repository | https://github.com/worktools/command-pool |
| max_upload_size | |
| id | 1784076 |
| size | 28,491 |
command-pool is a command-line tool for running a command multiple times in parallel.
-c or --concurrency flag.-n or --total-tasks flag.--timeout option.--stop-on-fail flag.command-pool [OPTIONS] -- <COMMAND> [ARGS]...
1. Basic Usage
Run a simple shell command 10 times with a concurrency of 4:
command-pool -c 4 -n 10 -- bash -c "echo 'Hello from task' && sleep 1"
2. Using a Script
Execute a shell script multiple times.
command-pool -c 2 -n 5 -- bash demos/random_sleep.sh
3. With Timeout
Run tasks with a 2-second timeout.
command-pool -c 3 -n 10 --timeout 2 -- bash demos/random_sleep.sh
This project is licensed under the MIT License.