initial commit
This commit is contained in:
14
Commands/ClearCommand.cs
Normal file
14
Commands/ClearCommand.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Spectre.Console;
|
||||
namespace AnchorCli.Commands;
|
||||
|
||||
public class ClearCommand : ICommand
|
||||
{
|
||||
public string Name => "clear";
|
||||
public string Description => "Clear the terminal screen";
|
||||
|
||||
public Task ExecuteAsync(string[] args, CancellationToken ct)
|
||||
{
|
||||
AnsiConsole.Clear();
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user