Your solutions for Advent of Code written in Java ☕.
Usage: aoc [COMMAND] run Advent of Code command line tool. Commands: scaffold create class and tests for the day. download download input file and create an empty example file. solve run the solution with the input for the specified day. help Display help information about the specified command.
The usual workflow of this is to:
scaffold --day <day>
command to create both test and solution classes in the project for the day.download --day <day>
command to download the input of the day and create an empty example file.solve --day <day>
command to launch your code with the day's input.This will create both day class and the associated test.
# example: `./aoc scaffold --day 1` ./aoc scaffold --day <day>
Important
This requires in your home folder the file .adventofcode.session
with your session-cookie in it. To find it, you have to log in on adventofcode.com and use the web developer tool to retrieve the value of the session
cookie.
# example: `./aoc download --day 1` ./aoc download --day <day>
this will create the input file and download corresponding data of day and an empty example file.
# example: `./aoc solve --day 1` ./aoc solve --day <day>
This will launch the day solver for the specified day with the input.
You can run the help command to see all available commands:
You also can have more information on commands with:
# example: `./aoc help solve` ./aoc help <command>
Inspired by advent-of-code-rust template.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4