AdventOfCode
Repo for AoC, thusfar 2015, 2016 & 2020 are complete.
Also contains small CLI for getting things up and running.
Example usage; .\CLI.exe scaffold -y 2015 -d 2 -u -c hello:world
This command will create Day02.cs
in the AoC2015
project,
as well as create Day02test.cs
in AoC2015Test
project with a single test case generated for part 1; TestCase[("hello", "world")]
.
Available commands and their flags.
-
scaffold
, create .cs file for day with option for unit test file
-y Required. The year, from 2015 to 2022
-d Required. The day, from 1 to 25
-u Creates a unit test file
-e Mutually exclusive with -c. Sets the expected value for example part 1 and reads input from file.
-c Mutually exclusive with -e. Generate test cases for part 1 in the format ofinput:outcome
. -
getinput
, retrieves input from site
-y Required. The year, from 2015 to 2022
-d Required. The day, from 1 to 25
-s Required. The session token for adventofcode.com -
runday
, run an individual day
-y Required. The year, from 2015 to 2022
-d Required. The day, from 1 to 25
-p Part one or two, or both if not specified
CLI made with CommandLineParser