View Source mix aoc.create (aoc v0.14.0)
This task will execute the following operations:
- Download the input from Advent of Code website into the
priv/inputs
directory. - Create the solution module.
- Create a test module.
Existing files will not be overwritten. It is safe to call the command again if you need to regenerate a deleted file.
The generated files will contain some comment blocks to help you get accustomed to using this library. This can be annoying after some time. You may disable generating those comments by setting the appropriate configuration option:
config :aoc, generate_comments: false
Usage
mix aoc.create [options]
Options
-y, --year <integer>
- Year of the puzzle. Defaults to today's year or custom default.-d, --day <integer>
- Day of the puzzle. Defaults to today's day or custom default.--help
- Displays this help.
Summary
Functions
Callback implementation for Mix.Task.run/1
.