- clear: clears terminal screen - config: view and set editor / code-editor preferences - version: print version and git hash (noz 0.1.0 (abc1234))
16 lines
401 B
C#
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;
|
|
}
|
|
}
|