diff --git a/2023/justfile b/2023/justfile index 4053d90..9c044db 100644 --- a/2023/justfile +++ b/2023/justfile @@ -2,6 +2,9 @@ DAY := `date +%d` +setup: + python3 -m venv venv + new: cp python/_sample.py python/day{{ DAY }}.py touch full/day{{ DAY }}.txt @@ -13,10 +16,8 @@ full: sample: /usr/bin/env python3 python/day{{ DAY }}.py --sample -ws: +wsample: watch /usr/bin/env python3 python/day{{ DAY }}.py --sample -watch: +wfull: watch /usr/bin/env python3 python/day{{ DAY }}.py - - diff --git a/README.md b/README.md index 50ffcc7..917188e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,33 @@ Advent of Code +# Running + +## Setup + +- `just setup` + +## Create Day + +- `just new` + +## Running + +Run the sample: + +- `just sample` + +Run Full: + +- `just full` + +Watching: + +- `just wfull` +- `just wsample` + +--- + +# Pre 2023 to run any day: @@ -9,18 +37,3 @@ to run any day: - cd to proper dir `cd 2022/python/` - run the day `python3 day01.py` - to run sample code pass `--sample` as the argument. `python day01.py --sample`, (nothing special just checks sys.argv[-1]) - - - - - -python day01.py --sample -python day02.py --sample -python day03.py --sample -python day04.py --sample -python day05.py --sample -python day06.py --sample -python day07.py --sample -python day08.py --sample -python day09.py --sample -python day10.py --sample