| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Copy .env.dist to .env and set your Advent of Code session cookie value in SESSION_TOKEN (after logging in to AoC). This enables the CLI to download inputs and validate answers. Test runs and stdin mode do not require network access.
Two scripts are provided at the repository root:
Both scripts accept the same parameters shown below; debug only changes how the app starts (for debugging).
# 1) Run a single day with your AoC input
./solve -y 2023 -d 1
# 2) Run a single day using built‑in test data (no AoC account needed)
./solve -y 2022 -d 13 -t
# 3) Run an entire year with your AoC input
./solve -y 2021Tip: You can also provide input via stdin for a single day:
echo "<your input>" | ./solve -y 2020 -d 10 -iBelow are the supported parameters. All are optional; omit --year and --day to run all released events and all days (1–25).
Year (-y, --year)
Day (-d, --day)
Test mode (-t, --test)
Validate (-v, --validate)
Overwrite cache (-c, --overwrite-cache)
Read input from stdin (-i, --input-from-stdin)
Use the ./debug script with the same parameters as ./solve:
./debug -y 2023 -d 1Then attach your IDE’s Remote JVM Debug to localhost:5005.
./gradlew test --rerunGenerate a solution class skeleton for a specific year and day:
./scaffold 2023 1This repo follows the automation guidelines on the /r/adventofcode community wiki: https://www.reddit.com/r/adventofcode/wiki/faqs/automation
| Back | FazBrowse Home | New Git URL |