run supported lang files with single command
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
This is a script written in bash, which compiles the code file and run it for you and delete other junk files if created during the process of compilation, all this with one command.
This project is made with following langs/frameworks.
- BASH
Now since we are done with the setting up of environment suitable for the project to compile/run, let's install and configure the project on your system locally now.
- Clone the repo
git clone https://github.com/proffapt/code-runner.git
- Make the script executable
cd ./code-runner chmod +x ./crunner
- Add the alias to you shell config file
echo "alias run="path/to/crunner"" >> ~/.SHELL_CONFIG source ~/.SHELL_CONFIG
- Run the code
OR
run my_code.c
run ~/path/to/my_code.c
run file >>> compiles and executes the executable
run --cc=<compiler> file >>> compiles the *.c file with specified compiler
run -c=<compiler> file >>> compiles the *.c file with specified compiler
run--cxx=<compiler> file >>> compiles the *.cpp file with specified compiler
run --debug file >>> compiles the file and pipes it to the specified debugger
run d file >>> compiles the file and pipes it to the specified debugger
run rclean-exe >>> deletes all executable files within the folder recursively
run clean-exe >>> deletes all executable files within the folder NON recursively
run clean >>> removes debug folder, .out and temp files
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
- Added this changelog :)
- Added support for C and C++ files.
- New help menu
- New debugger support
- New code flow
- New clean modes
Distributed under the BSD-2-Clause License. See LICENSE.txt
for more information.
Arpit Bhardwaj - Twitter - Telegram - proffapt@protonmail.com
Company website: Cybernity - CybernityForum
Project Link: https://github.com/proffapt/code-runner