https://github.com/cchexcode/bobr
A feature-rich CLI command multiplexer. Allows parallel command execution via child processes for parallelizing simple commands or long-running tasks like spawning backend + frontend processes.
https://github.com/cchexcode/bobr
Last synced: 8 months ago
JSON representation
A feature-rich CLI command multiplexer. Allows parallel command execution via child processes for parallelizing simple commands or long-running tasks like spawning backend + frontend processes.
- Host: GitHub
- URL: https://github.com/cchexcode/bobr
- Owner: cchexcode
- License: mit
- Created: 2024-11-15T10:01:54.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-11T22:29:22.000Z (11 months ago)
- Last Synced: 2025-05-07T23:08:02.588Z (8 months ago)
- Language: Rust
- Homepage:
- Size: 1.3 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: docs/README.md
- License: LICENSE
Awesome Lists containing this project
README
# bobr
[](https://github.com/cchexcode/bobr)
[](https://crates.io/crates/bobr)
[](https://deps.rs/repo/github/cchexcode/bobr)
[](https://docs.rs/crate/bobr/latest)

`bobr` is a simple command multiplexer, particularly useful for executing multiple commands in parallel. It supports both short-lived task execution and long-lived process management, such as running a backend and frontend simultaneously and managing their lifecycle together.

## How to use
`bobr` executes all specified commands as child processes in parallel.
- `bobr -c "sleep 5" -c "sleep 10" -c "sleep 2 && exit 1"`
Execute multiple commands in parallel as specified via the command line.
- `bobr -c "sleep 5" -f ./tasks.sh`
Commands can also be loaded from a file for convenience.
- `bobr -e --stdout=json -f ./tasks.sh`
This command propagates the stdout pipe from child tasks into the `bobr` stdout pipe, allowing output in JSON format.