Racket package for fetching Advent of Code input.
After installing with raco pkg install advent-of-code:
raco aoc [-y year] [-d day]Fetch the puzzle input for a given day.
raco aoc [-y year] [-d day] -a <part> <answer>Submit an answer for the given puzzle.
Notes:
yeardefaults to the latest Advent of Code, if not specified.daydefaults to the current day of the month, capped at 25.sessionis a validsessioncookie. Defaults to the contents ofsession.keyin this package's install directory. You will be prompted for this if it is not available.
For more details, run raco help aoc or raco aoc --help.