Shard Detail

advent-of-code-2022 v0.1.0

Tools and solutions for AoC 2022

Install & Use

Add the following code to your project's shard.yml under:

dependencies to use in production
- OR -
development_dependencies to use in development


advent-of-code-2022:
  github: wrejcodes/advent-of-code-2022

Readme

advent-of-code-2022

Tooling & Solutions for Advent of Code 2022 problems

Compile CLI

CLI can be compiled via shards shards build

This will create an executable file in bin named cli

CLI

CLI currently supports:

  • scaffolding of a new solution folder structure with base solution file
  • running a solution against a given input file located within the solution folder

You can create a new solution folder by running the following command in the root directory

bin/cli new -f <folder_name>

You can run a solution against the sample input by running the following command in the root directory

bin/cli run -f <folder_name>

You can also run a solution against an arbitrary input file in solutions/<folder_name>/in/<input_name>.in with the following command in the root directory

bin/cli run -f <folder_name> -i <input_name>

You can also run a solution with debug enabled if the solution has additional debugging output (ex: solution 9)

bin/cli run -f 9 -i larger -d