advent-of-code/2023/justfile

24 lines
463 B
Makefile
Raw Permalink Normal View History

2023-12-01 15:31:20 +00:00
#!/usr/bin/env -S just --justfile
DAY := `date +%d`
2023-12-03 04:20:53 +00:00
setup:
python3 -m venv venv
2023-12-01 15:31:20 +00:00
new:
cp python/_sample.py python/day{{ DAY }}.py
touch full/day{{ DAY }}.txt
touch samples/day{{ DAY }}.txt
2023-12-03 04:13:00 +00:00
full:
2023-12-03 04:12:04 +00:00
/usr/bin/env python3 python/day{{ DAY }}.py
2023-12-01 15:31:20 +00:00
2023-12-03 04:13:00 +00:00
sample:
/usr/bin/env python3 python/day{{ DAY }}.py --sample
2023-12-03 04:20:53 +00:00
wsample:
2023-12-03 04:13:00 +00:00
watch /usr/bin/env python3 python/day{{ DAY }}.py --sample
2023-12-03 04:20:53 +00:00
wfull:
2023-12-03 04:13:00 +00:00
watch /usr/bin/env python3 python/day{{ DAY }}.py