mirror of
https://github.com/kristoferssolo/Advent-of-Code.git
synced 2026-02-04 06:12:01 +00:00
Init 2025
This commit is contained in:
37
2025/justfile
Normal file
37
2025/justfile
Normal file
@@ -0,0 +1,37 @@
|
||||
# Use `just work day-01 part1` to work on the specific binary for a specific day's problems
|
||||
watch day part:
|
||||
cargo watch -w {{day}} -x "check -p {{day}}" -s "just test {{day}} {{part}}" -s "just lint {{day}}"
|
||||
|
||||
lint day:
|
||||
cargo clippy -p {{day}}
|
||||
|
||||
test day part:
|
||||
cargo nextest run -p {{day}} {{part}}
|
||||
|
||||
bench-all:
|
||||
cargo bench -q > benchmarks.txt
|
||||
|
||||
bench day:
|
||||
cargo bench --bench {{day}}-bench > {{day}}/bench.txt
|
||||
|
||||
# create the directory for a new day's puzzle and fetch the input
|
||||
create day:
|
||||
cargo generate --path ./daily-template --name {{day}}
|
||||
just get-input {{day}}
|
||||
|
||||
# You can find SESSION by using Chrome tools:
|
||||
# 1) Go to https://adventofcode.com/2022/day/1/input
|
||||
# 2) right-click -> inspect -> click the "Application" tab.
|
||||
# 3) Refresh
|
||||
# 5) Click https://adventofcode.com under "Cookies"
|
||||
# 6) Grab the value for session. Fill it into your .env file
|
||||
#
|
||||
# example .env:
|
||||
#
|
||||
# ```
|
||||
# SESSION=PASTE_COOKIE_VALUE_HERE
|
||||
# ```
|
||||
#
|
||||
# get the input for a day's puzzle
|
||||
get-input day:
|
||||
./scripts/get-aoc-input.rs --day {{day}} --current-working-directory {{justfile_directory()}}
|
||||
Reference in New Issue
Block a user