https://github.com/shhossain/run
Run any code in your local machine
https://github.com/shhossain/run
Last synced: 7 months ago
JSON representation
Run any code in your local machine
- Host: GitHub
- URL: https://github.com/shhossain/run
- Owner: shhossain
- License: gpl-3.0
- Created: 2022-10-30T03:48:36.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-01T15:33:55.000Z (almost 3 years ago)
- Last Synced: 2025-01-26T05:24:45.823Z (8 months ago)
- Language: Python
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Run
Run any language code with input and output file.## Currently supported languages
- C
- C++
- Python## Pre-requisites
- Python 3Download latest version of python from [here](https://www.python.org/downloads/)
## Installation with git clone
```bash
$ git clone https://github.com/shhossain/run
$ cd run
$ python setup.py
```## Installation with zip file
**Steps**:
1. Download the zip file from [here](https://github.com/shhossain/run/archive/refs/heads/main.zip)
2. Extract the zip file
3. Open terminal and go to the extracted folder
4. Run the following command
```bash
$ python setup.py
```## Usage
### Install a language
```bash
$ run install
``````bash
$ run install python 3.11.0
```### Run a code
```bash
$ run hello.py
``````bash
$ run hello.cpp
```__Note: Supported python, c++, c__
### Run a code with input file [Any text file is supported]
```bash
$ run hello.py -i input.tx
``````bash
$ run hello.cpp -i input.txt
```### Run a code with output file [Any text file is supported]
```bash
$ run hello.py -o output.txt
```### Run a code with input and output file [Any text file is supported]
```bash
$ run hello.py -i input.txt -o output.txt
```### Run a code with expected output file [Any text file is supported]
```bash
$ run hello.py -e expected.txt
```### Run a code with time limit [in seconds]
```bash
$ run hello.py -t 2
```
__Note: `2` here is in seconds__