Add the following code to your project's shard.yml under:
dependencies
to use in production
- OR -
development_dependencies
to use in development
These are my solutions to the Advent of Code 2022 using Crystal.
Run all solutions:
crystal src/main.cr
Run a given day:
crystal src/main.cr <DAY_NUMBER>
It will create the implementation class, its spec, and an empty input file.
crystal tools/day_gen.cr <DAY_NUMBER>