Make sure AOC_YEAR
env var has the correct year.
To download the input and create test and source files for a particular day, make sure the AOC_SESSION
env var has your session cookie value, and then run:
$ mix advent.setup <day>
For instance, to setup day 3, run:
$ mix advent.setup 3
Then, to run the code and output the solution, run:
$ mix advent.run <day> <part> <optional args>
For example, run day 2 part 2 and pass an argument of 19690720 (which will be passed along to the Day02.part2
function):
$ mix advent.run 2 2 19690720