Skip to content

lanierc/qrun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

qrun

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.


Key Features

  • 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.

Installation

Arch Linux (AUR)

The recommended way to install on Arch Linux is via the AUR:

yay -S qrun-code-git

Manual Installation

For 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/qrun

Usage

Execute 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

Configuration

To modify default GCC flags or toggle the cleanup setting, use:

qrun --settings

Requirements

The following dependencies must be installed on your system:

  • gcc / g++
  • python3
  • go

License

This project is licensed under the MIT License.

About

A quick compile script for Go, C, C++ and Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages