advent-of-code-2024/aoc

9 lines
220 B
Text
Raw Normal View History

2024-12-01 14:10:32 -07:00
#!/usr/bin/env zsh
setopt extendedglob
cd "day$1"
# Handle deno days
if [[ -n *.ts(#qN) ]]; then
deno eval --ext=ts "await import('./part$2.ts').then(m => m.solve()).then(s => console.log('The solution is', s))"
fi