Copy .env.dist
file into .env
file and fill in the value of session
cookie after you have authenticated in AoC.
requires configured AoC access in .env file
./app -y 2023 -d 1
./app -y 2022 -d 13 -t
requires configured AoC access in .env file
./app -y 2021 -d 12 -v
Execute single solution - invalidate cache (means download input and answers from AoC) - Event 2020, Day 10
requires configured AoC access in .env file
./app -y 2020 -d 10 -c
requires configured AoC access in .env file
./app -y 2022
./app -y 2021 -t
requires configured AoC access in .env file
./app -y 2020 -v
requires configured AoC access in .env file
./app -y 2019 -c
requires configured AoC access in .env file
./app
Debugging the CLI application can be done by running the debug
script. It will start the application in dev mode,
suspend the JVM, and pass all script arguments to the Quarkus application.
./debug -y 2023 -d 1
To attach to the suspended JVM from IntelliJ, create a new Remote JVM Debug configuration and set the port to 5005. Like this:
- Go to Run -> Edit Configurations....
- Click the + button and select Remote JVM Debug from the list.
- Name the configuration something memorable, such as Attach to Quarkus CLI.
- Ensure the Debugger mode is set to Attach to remote JVM.
- Set the Host to localhost.
- Set the Port to 5005. This is the default debug port that Quarkus uses.
- Click Apply and OK.
./scaffold 2023 1
This repo does follow the automation guidelines on the /r/adventofcode community wiki https://www.reddit.com/r/adventofcode/wiki/faqs/automation. Specifically:
- Once inputs are downloaded, they are cached locally
- If you suspect your input is corrupted, you can execute the solution without a cache by adding '-c' flag
- The User-Agent header in com.vuryss.aoc.client.NativeJavaAdventOfCodeClient is set to me since I maintain this repo :)