Skip to content

anhsirk0/exqt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

EXQT - simple code runner script

Installation

Its just a perl script download it make it executable and put somewhere in your $PATH

Downloading the script

curl https://codeberg.org/anhsirk0/exqt/raw/branch/main/exqt.pl --output exqt

Making it executable

chmod +x exqt

Copying it to $PATH

cp exqt ~/.local/bin/

Usage

exqt <FILE> <ARGS>

Examples

test.c

#include <stdio.h>

int main(int argc, char **argv) {
    printf("Number of args: %d\n", argc);
    for (int i = 0; i < argc; i++) {
        printf("arg %d: %s\n", i, argv[i]);
    }
    return 0;
}

running it with exqt

$ exqt test.c arg1 arg2 arg3
Number of args: 4
arg 0: ./exqt_test.out
arg 1: arg1
arg 2: arg2
arg 3: arg3

Python Example test.py

import sys
print(sys.argv)
$ exqt test.py arg1 arg2 arg3
['test.py', 'arg1', 'arg2', 'arg3']

About

simple code runner script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages