piston/packages/vlang/0.1.13/run

13 lines
219 B
Bash

#!/usr/bin/env bash
# Export environment variables
export VMODULES="$PWD"
export TMPDIR="$PWD"
# Put instructions to run the runtime
rename 's/$/\.v/' "$@" # Add .v extension
filename=$1.v
shift
v run $filename "$@"