Crates.io | rldr |
lib.rs | rldr |
version | 0.0.2 |
source | src |
created_at | 2024-11-12 02:17:26.22155 |
updated_at | 2024-11-14 21:21:27.329828 |
description | A simple command line utility to run and manage commands with keypress controls. |
homepage | |
repository | https://github.com/ammar-ahmed22/rldr |
max_upload_size | |
id | 1444480 |
size | 22,767 |
[ ree-loh-der ]
A simple command line utility to run and manage commands with keypress controls.
python3 main.py
, ping google.com
, etc.).stdout
and stderr
and displays them as they are generated.r
to restart the command.c
to close the command.q
to quit the reloader.In order to install rldr
, you need to have cargo
installed. If you don't have Rust or cargo
installed, you can find instructions here.
cargo install rldr
rldr --help
git clone https://github.com/ammar-ahmed22/rldr.git
cd rldr
cargo install --path .
To use rldr
, you simply pass in the command you want to run. rldr
will start the command and provide interactive controls.
rldr ping google.com
Upon running rldr
it will display:
[rldr] Enter `r` to reload, `c` to close, `q` to quit
You can then enter:
r
to restart the command, which terminates the current instance and starts it again.c
to close the command, stopping it's execution (but still listening for input)q
to quit out of rldr
rldr
relies on bash
on Unix systems and cmd
on Windows. Ensure these shells are available on your systemrldr
works well with real-time commands, some programs with heavy buffering may still delay output display. Commands that require user input will also not work due to the input handling from rldr
Contributions, issues, and feature requests are welcome! Feel free to open an issue or pull request to help improve rldr
.
This project is licensed under the MIT License.