Skip to content

it is shell script it will run major programming language and install it if necessary in linux

Notifications You must be signed in to change notification settings

sreecharan7/runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Runner

Runner is a command-line tool (run) designed to execute code files in various supported languages and provide additional functionalities. Supports only in linux

Installation

To install Command Runner, clone the repository and run the installation script:

Linux Installation Steps

sudo git clone https://github.com/sreecharan7/runner.git && cd runner && sudo bash install.sh && cd .. && sudo rm -rf runner

Windows Installation Steps

  1. Install WSL (Windows Subsystem for Linux): Open PowerShell as Administrator and run the following command:

    wsl --install

    Follow the prompts to complete the installation of WSL.

  2. Install Command Runner: Once WSL is installed , open the WSL terminal ( just type "wsl" in terminal ) and run the following commands:

    sudo git clone https://github.com/sreecharan7/runner.git && cd runner && sudo bash install.sh && cd .. && sudo rm -rf runner

    This command clones the repository, runs the installation script, and cleans up after installation. This will be only avalible in the wsl only.

This command clones the repository, runs the installation script, and cleans up after installation.

Usage

run [options] <filename>

Supported Languages

Command Runner supports the following languages:

  • asm
  • c
  • cpp
  • java
  • py (Python)
  • node.js

Options

  • -i <packages>: Install or upgrade packages for the specified language.
  • -d: Delete the executable file after running (keeps source).
  • -m <pattern>: Uses grep to find a pattern in files before execution.
  • -c: Provide filename and separate code with lines after execution.
  • -t: Run the latest edited file in the current directory (no need for arguments).
  • -b <batch name>: Run specific batch commands defined by <batch name>.

More Options

  • --help: Display how the command works.
  • --version: Show version information.
  • --update: Update to the latest version of the command.
  • --uninstall: To unistall command.
  • --addb: Add a new batch for batch execution.
  • --editb: Edit an existing batch.

Examples

run myfile.cpp       # Run a C++ file.
run -i python        # Install or upgrade Python packages.
run -d myfile.c      # Delete executable of a C file.
run -m "[1-9].c$"    # Find and run numbered C files (e.g., 1.c, 12.c).
run -m .             # Run all supported files in the current directory.
run -b batch1        # Run commands defined in batch1.

Contributing

Contributions are welcome! If you encounter any issues or have suggestions, please create an issue or submit a pull request in this repository.


About

it is shell script it will run major programming language and install it if necessary in linux

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages