mix aoc (Advent of Code Utils v1.0.2) View Source
Create a code skeleton and fetch input for the AOC challenge of a day / year.
This mix task runs mix aoc.gen followed by mix aoc.get. Afterwards, it prints the url of
today's challenge.
mix aoc.gen
This task generates a code skeleton for the given day and year in lib/<year>/<day>.ex, which
uses the AOC.aoc/3 macro. To customise the path where code is stored, refer to the
mix aoc.gen documentation.
mix aoc.get
This task fetches the input for a given day and year and stores it in input/<year>_<day>.txt.
In order for this task to work, your session cookie should be passed as a command line argument
or set up in the :advent_of_code_utils application environment. Please refer to the
mix aoc.get documenntation for more information.
Command-line arguments
-sor--session: Specify the session cookie.-yor--year: Specify the year.-dor--day: Specify the day.
All of these options take precedence over their application environment counterparts.
Link to this section Summary
Functions
Callback implementation for Mix.Task.run/1.
Link to this section Functions
Callback implementation for Mix.Task.run/1.