piston/packages/vlang/0.1.13/run

13 lines
219 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
# Export environment variables
export VMODULES="$PWD"
export TMPDIR="$PWD"
# Put instructions to run the runtime
2021-04-24 10:08:48 +02:00
rename 's/$/\.v/' "$@" # Add .v extension
filename=$1.v
shift
v run $filename "$@"