Add colors and stuff

Because I think it's neat. Ref: https://www.lihaoyi.com/post/BuildyourownCommandLinewithANSIescapecodes.html
This commit is contained in:
2021-12-13 09:46:32 -06:00
parent 884e685c62
commit fe2d276115
17 changed files with 70 additions and 72 deletions

View File

@ -11,13 +11,13 @@ if (arg == "all")
foreach (var type in types)
{
var day = (Day)Activator.CreateInstance(type)!;
using var day = (Day)Activator.CreateInstance(type)!;
day.Go();
}
}
else
{
Day day = arg switch
using Day day = arg switch
{
"1" => new Day01(),
"2" => new Day02(),