This repository is a cookiecutter template but it also contains my solutions which are not included when use this template. This is thanks to the way cookiecutter works, in which the top-level directory is not included in the template.
First you need to install cookiecutter, see the installation docs for more info.
The easiest way is usually pip
or pipx
:
# using pip
pip install cookiecutter
# using pipx
pipx install cookiecutter
Using the template
Running the following command will create a folder named advent-<year>
with a folder for each language you choose.
cookiecutter gh:jcwillox/advent-of-code
Adding more days and languages
The command above only creates 1 year, 1 language, 1 day. Naturally you might want more than that. All you need to do is run the same command again with -f -s
in the same directory and it will add the additional files without overwriting your changes.
cookiecutter gh:jcwillox/advent-of-code -f -s