···11-22-_default:
33- @just --list --unsorted --justfile {{justfile()}}
44-55-checkall:
66- nix flake check
77-88-year := `date +%Y`
99-day := `nu -c 'date now | format date "%_d" | str trim'`
1010-1111-# Run a specific part of today's problem
1212-p P in="" ARGS="":
1313- cargo run {{ARGS}} -- solve {{year}}:{{day}}:{{P}} {{in}}
1414-1515-# Run a specific day and part of this year
1616-dp DP in="" ARGS="":
1717- cargo run {{ARGS}} -- solve {{year}}:{{DP}} {{in}}
1818-1919-# Run a specific year's day's part
2020-dyp DYP in="" ARGS="":
2121- cargo run {{ARGS}} -- solve {{DYP}} {{in}}
2222-2323-# Create a new year crate
2424-prep:
2525- cargo run --release -- new {{year}}
2626-2727-# Test today's solution against examples
2828-test:
2929- cargo test -p y_{{year}} --release day_{{day}}_part_
3030-3131-# Test all of this year's solutions against examples
3232-test-all:
3333- cargo test -p y_{{year}} --release
3434-3535-# Open Editor to today's file
3636-start:
3737- nvim years/{{year}}/src/day_{{day}}.rs
3838-3939-hakari:
4040- cargo hakari generate