Usage
Basic Usage
bash
quikrun <file>Quikrun detects how to run the file automatically by checking its shebang line first, then its extension.
bash
quikrun hello.py # runs: python3 hello.py
quikrun hello.js # runs: node hello.js
quikrun hello.c # compiles with gcc, then runs the binaryTo view the help menu:
bashquikrun --helpTo print the version:
bashquikrun --version
Passing Arguments to Script
For simple cases with no flag conflicts:
bashquikrun script.py arg1 arg2Use the
--separator to forward arguments to the script instead of quikrun:bashquikrun script.py -- --verbose --output result.txt # ↑ everything after '--' goes to script.py
Shebang Detection
If the file starts with a shebang (#!), quikrun will execute it directly ignoring extension:
bash
# my_script (no extension, shebang: #!/usr/bin/env python3)
quikrun my_scriptExit Codes
Quikrun forwards the exit code of the executed script directly to the shell, so you can use it in pipelines and scripts:
bash
quikrun test.py || echo "script failed"