You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
507 B
C#
28 lines
507 B
C#
using System;
|
|
|
|
using Spectre.Console;
|
|
|
|
namespace SpectreConsoleStudy.Shared
|
|
{
|
|
/// <summary>
|
|
/// 执行器
|
|
/// </summary>
|
|
public class SpectreConsoleRunner
|
|
{
|
|
public static void Run()
|
|
{
|
|
//简单应用
|
|
Hello();
|
|
}
|
|
|
|
public static void Hello()
|
|
{
|
|
AnsiConsole.MarkupLine("[green]Hello[/] Spectre.Console!!");
|
|
while (!AnsiConsole.Confirm("退出应用?"))
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|