mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 00:42:51 +08:00

* Renames Spectre.Cli to Spectre.Console.Cli. * Now uses Verify with Spectre.Console.Cli tests. * Removes some duplicate definitions. Closes #168
20 lines
601 B
C#
20 lines
601 B
C#
using Spectre.Console;
|
|
|
|
namespace Calendars
|
|
{
|
|
public static class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
AnsiConsole.WriteLine();
|
|
AnsiConsole.Render(new Calendar(2020, 10)
|
|
.RoundedBorder()
|
|
.HighlightStyle(Style.Parse("red"))
|
|
.HeaderStyle(Style.Parse("yellow"))
|
|
.AddCalendarEvent("An event", 2020, 9, 22)
|
|
.AddCalendarEvent("Another event", 2020, 10, 2)
|
|
.AddCalendarEvent("A third event", 2020, 10, 13));
|
|
}
|
|
}
|
|
}
|