initial commit
This commit is contained in:
15
Commands/ExitCommand.cs
Normal file
15
Commands/ExitCommand.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user