piston/packages/vlang/0.3.3/run

14 lines
225 B
Plaintext
Raw Permalink Normal View History

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