Add the following code to your project's shard.yml under:
dependencies
to use in production
- OR -
development_dependencies
to use in development
Tooling & Solutions for Advent of Code 2022 problems
CLI can be compiled via shards
shards build
This will create an executable file in bin named cli
CLI currently supports:
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