noz-cli/NozCli/Commands/ICommand.cs
kryptomrx cf54165735 feat(commands): ls with detailed view, tree hierarchy, CancellationToken support
- ls: compact view with status dots and folder markers
- ls -la: table view with status, lang, date, title; folders show mini status bar
- tree: recursive hierarchy using Spectre.Console Tree widget, context-aware
- All commands: CancellationToken threaded through ExecuteAsync
- Partition() helper respects topic-relative slug depth
2026-05-16 23:20:49 +02:00

12 lines
262 B
C#

using NozCli.Repl;
namespace NozCli.Commands;
public interface ICommand
{
string Name { get; }
string Description { get; }
string Usage { get; }
Task ExecuteAsync(string[] args, ReplContext ctx, CancellationToken ct = default);
}