noz-cli/NozCli/Commands/ClearCommand.cs
kryptomrx 1865a7ccc2 feat(commands): clear, config, version
- clear: clears terminal screen
- config: view and set editor / code-editor preferences
- version: print version and git hash (noz 0.1.0 (abc1234))
2026-05-16 23:21:06 +02:00

16 lines
401 B
C#

using NozCli.Repl;
namespace NozCli.Commands;
public class ClearCommand : ICommand
{
public string Name => "clear";
public string Description => "Clear the terminal screen";
public string Usage => "clear";
public Task ExecuteAsync(string[] args, ReplContext ctx, CancellationToken ct = default)
{
Console.Clear();
return Task.CompletedTask;
}
}