View Source mix aoc.create (aoc v0.12.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 mix aoc.set -C or passing that -C flag when calling mix aoc.create.

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.
  • -C, --skip-comments - Do not include help comments in the generated code. Default value can be defined using mix aoc.set, otherwise comments are included.
  • --help - Displays this help.

Summary

Functions

Callback implementation for Mix.Task.run/1.