feat: Add Get-Calendar command and Debug harnesses

- add Get-Calendar command
- add initial debug harness for local debug
This commit is contained in:
Scott 2026-07-19 00:32:32 +00:00
commit 274d279732
15 changed files with 938 additions and 1 deletions

15
Harness/Harness.csproj Normal file
View file

@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latestmajor</LangVersion>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\ModuleCore\ModuleCore.csproj" />
</ItemGroup>
</Project>

20
Harness/Program.cs Normal file
View file

@ -0,0 +1,20 @@
using System.Text;
using ModuleCore.Calendar;
namespace Harness;
class Program
{
static void Main(string[] args)
{
Console.OutputEncoding = Encoding.Unicode;
var a = new Calendar();
var lastMonth = a.RenderCalendar(DateTime.Now.AddMonths(-1));
var now = a.RenderCalendar(DateTime.Now);
var august = a.RenderCalendar(DateTime.Now.AddMonths(1));
Console.Write(lastMonth);
Console.Write(now);
Console.Write(august);
}
}