Compare commits
2 Commits
main
..
e5bcc4b797
| Author | SHA1 | Date | |
|---|---|---|---|
| e5bcc4b797 | |||
| a2f56cc42e |
@@ -0,0 +1 @@
|
|||||||
|
export AOC_SESSION=53616c7465645f5f4cb5b358663d09507a64e7d51ea3bcef2e993b7d6ffe78a3514736db5d4b5b291e800d6aa1d18bffdbfd33c2c3510e74047b74865a7ecc4f
|
||||||
@@ -7,7 +7,7 @@ _curl day url *args:
|
|||||||
day := `date +'%d'`
|
day := `date +'%d'`
|
||||||
new day=day:
|
new day=day:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euxo pipefail
|
||||||
mkdir day-{{day}}/
|
mkdir day-{{day}}/
|
||||||
just _curl {{day}} input -o day-{{day}}/input
|
just _curl {{day}} input -o day-{{day}}/input
|
||||||
cat > day-{{day}}/main.raku <<'MAIN'
|
cat > day-{{day}}/main.raku <<'MAIN'
|
||||||
@@ -33,7 +33,6 @@ run day=day:
|
|||||||
|
|
||||||
test day=day:
|
test day=day:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
|
||||||
for f in day-{{day}}/example-*.in; do
|
for f in day-{{day}}/example-*.in; do
|
||||||
tput setaf 2; echo $'\t'$f; tput setaf 7;
|
tput setaf 2; echo $'\t'$f; tput setaf 7;
|
||||||
raku day-{{day}}/main.raku $f
|
raku day-{{day}}/main.raku $f
|
||||||
@@ -41,9 +40,3 @@ test day=day:
|
|||||||
|
|
||||||
watch day=day:
|
watch day=day:
|
||||||
watchexec just test {{day}}
|
watchexec just test {{day}}
|
||||||
|
|
||||||
example day=day:
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
set -euo pipefail
|
|
||||||
for f in day-{{day}}/example-{1..9}.in; do test -f $f || break; done
|
|
||||||
cat > $f
|
|
||||||
|
|||||||
Reference in New Issue
Block a user