mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-04 02:25:28 +08:00 
			
		
		
		
	* Adding a dark mode * Adding reference for types to summary pages * Adding API Reference * Adding modifiers to methods/fields/etc * Minimizing files input * Caching a lot of the output pages * Cache only for each execution * Adding API references to existing docs
		
			
				
	
	
		
			19 lines
		
	
	
		
			542 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			542 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using Spectre.Console;
 | 
						|
 | 
						|
namespace Calendars;
 | 
						|
 | 
						|
public static class Program
 | 
						|
{
 | 
						|
    public static void Main(string[] args)
 | 
						|
    {
 | 
						|
        AnsiConsole.WriteLine();
 | 
						|
        AnsiConsole.Write(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));
 | 
						|
    }
 | 
						|
}
 |