-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
29 lines (23 loc) · 682 Bytes
/
justfile
File metadata and controls
29 lines (23 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
prepare year day:
cargo run -p advent_of_code_scripts -- --year {{year}} --day {{day}} --cwd {{justfile_directory()}}
prepare-year year:
for day in {1..25}; do \
just prepare {{year}} $day; \
done
prepare-all:
for year in {2015..2025}; do \
just prepare-year $year; \
done
rebuild:
cd advent_of_code_rust && \
cargo clean && \
cargo build
rs-r year day:
cargo run --manifest-path advent_of_code_rust/Cargo.toml \
-p advent_of_code_{{year}} {{day}}
rs-t year day:
cargo test --manifest-path advent_of_code_rust/Cargo.toml \
-p advent_of_code_{{year}} day{{day}}
rs-code:
cd advent_of_code_rust && \
code .