This commit is contained in:
Natsu Kagami 2023-12-02 15:31:39 +01:00
parent 808cf54faf
commit ad788f4758
Signed by: nki
GPG key ID: 55A032EB38B49ADB
6 changed files with 182 additions and 13 deletions

21
run Executable file
View file

@ -0,0 +1,21 @@
#!/usr/bin/env fish
if test (count $argv) -lt 2
echo "$(status -f) [day] [part] ..."
exit 1
end
set input ""
if test $argv[1] = "--with-input"
set input "yes"
set -e argv[1]
end
set day $argv[1]
set part $argv[2]
if test -n $input
scala-cli run **.scala --main-class "Day$day" -- $part $argv[3..] < ./inputs/day$day.input
else
scala-cli run **.scala --main-class "Day$day" -- $part $argv[3..]
end