compile_args support

This commit is contained in:
Lunarmagpie 2023-03-10 07:04:52 -05:00
parent cf0157e656
commit 649fd7da13
2 changed files with 5 additions and 4 deletions

View file

@ -7,6 +7,9 @@ cp /piston/packages/gleam/0.27.0/project/build/packages* project/build -r || tru
cat $1 > project/src/project.gleam
# Compile args need to be read by run
echo "$@" > compile_args
cd project
ls -R -a
gleam build
gleam build "$@"

View file

@ -1,7 +1,5 @@
#!/usr/bin/env bash
# ls -R
shift
cd project
gleam run -- "$@"
gleam run $(cat compile_args) -- "$@"