16 lines
382 B
C#
16 lines
382 B
C#
using Spectre.Console;
|
|
namespace AnchorCli.Commands;
|
|
|
|
public class ExitCommand : ICommand
|
|
{
|
|
public string Name => "exit";
|
|
public string Description => "Exit the application";
|
|
|
|
public Task ExecuteAsync(string[] args, CancellationToken ct)
|
|
{
|
|
AnsiConsole.MarkupLine("[green]Goodbye![/]");
|
|
Environment.Exit(0);
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|