Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uasi/paraexec
Parallel exec
https://github.com/uasi/paraexec
Last synced: 17 days ago
JSON representation
Parallel exec
- Host: GitHub
- URL: https://github.com/uasi/paraexec
- Owner: uasi
- License: apache-2.0
- Created: 2024-08-20T11:32:07.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-08-21T07:47:07.000Z (5 months ago)
- Last Synced: 2024-11-05T20:50:22.728Z (2 months ago)
- Language: Rust
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# paraexec
paraexec (Parallel exec) is a command-line tool that allows you to run multiple commands in parallel, with organized output display.
## Usage
```
paraexec ( [/] [=...] [...] )+
```- ``: A string used to separate different commands
- `/`: (Optional) A custom label for the command output (defaults to ``)
- `=`: (Optional) Environment variables for the command
- ``: The command to execute
- ``: (Optional) Arguments for the command## Examples
1. Run two simple commands in parallel:
```
$ paraexec :: echo Hello :: echo World
echo | Hello
echo | World
echo = exit status: 0
echo = exit status: 0
```2. Run commands with custom labels and environment variables:
```
$ paraexec ,, frontend/ NODE_ENV=production npm run build ,, backend/ cargo build --release
frontend | asset main.js 142 bytes [compared for emit] [minimized] (name: main)
backend | Compiling backend v0.1.0 (/app/backend)
frontend | webpack 5.1.0 compiled successfully in 198 ms
frontend = exit status: 0
backend | Finished `release` profile [optimized] target(s) in 10.55s
backend = exit status: 0
```3. stdout/stderr and exit statuses:
```
$ paraexec :: sh -c 'echo stdout ; echo stderr >&2' :: false
false = exit status: 1
sh | stdout
sh !| stderr
sh = exit status: 0
$ echo $?
1
```## Installation
```
$ cargo build --release
$ cp target/release/paraexec /path/to/bin/
```