CLI to help initialise the solution for Advent of Code π. Solving it though, it's on you π
I maintain a homebrew-tap repo with my CLI's. You can just install it with Brew or check the releases pages and install it that way.
brew install kevinrobayna/homebrew-tap/aoc2md
Before you run the program you need to grab the πͺ cookie session value from adventofcode.com after you log in.
You should do this every time the Advent of Code season starts since the session will expire.
To generate today's problem just run the following:
aoc2md
But you can specify the day and year like so:
aoc2md --day 1 --year 2015
Remember to make the session available through the env variable AOC_SESSION
or directly in the command like so:
aoc2md --session your_secret_value
You can now generate a template for your solution by specifying the language you want to use
aoc2md --lang ruby