A lightweight, multi-language CLI tool designed to simplify the workflow of compiling and executing code.
The qrun utility manages the boilerplate commands for various programming languages, allowing developers to focus on logic rather than compiler syntax and flags.
- Multi-Language Support: Automatically detects and handles C, C++, Python, and Go.
- Performance Tracking: Includes a built-in execution timer that measures performance in milliseconds.
- Automatic Cleanup: Optionally removes compiled binary files after execution to maintain a clean workspace.
- Customizable Configuration: Features a persistent settings menu for compiler flags and cleanup preferences.
- Minimalist Interface: Provides clean, color-coded terminal output for high readability.
The recommended way to install on Arch Linux is via the AUR:
yay -S qrun-code-gitFor other Linux distributions, clone the repository and create a symbolic link:
git clone https://github.com/YOUR_USERNAME/qrun.git
cd qrun
chmod +x qrun.sh
sudo ln -s $(pwd)/qrun.sh /usr/bin/qrunExecute any supported file using the following command structure:
qrun <filename> [additional_flags]| Language | Extension | Example Command |
|---|---|---|
| C | .c | qrun main.c |
| C++ | .cpp, .cc | qrun algorithm.cpp -O3 |
| Python | .py | qrun script.py |
| Go | .go | qrun app.go |
To modify default GCC flags or toggle the cleanup setting, use:
qrun --settingsThe following dependencies must be installed on your system:
- gcc / g++
- python3
- go
This project is licensed under the MIT License.