- clear: clears terminal screen - config: view and set editor / code-editor preferences - version: print version and git hash (noz 0.1.0 (abc1234))
17 lines
490 B
C#
17 lines
490 B
C#
using NozCli.Repl;
|
|
using Spectre.Console;
|
|
|
|
namespace NozCli.Commands;
|
|
|
|
public class VersionCommand : ICommand
|
|
{
|
|
public string Name => "version";
|
|
public string Description => "Show noz version info";
|
|
public string Usage => "version";
|
|
|
|
public Task ExecuteAsync(string[] args, ReplContext ctx, CancellationToken ct = default)
|
|
{
|
|
AnsiConsole.MarkupLine($"\n [bold cyan]noz[/] [white]{VersionInfo.Full}[/]\n");
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|