Refactor CLI command system to support async execution and central command history

This commit is contained in:
Stone_Red
2026-06-11 20:40:26 +02:00
parent 2b091e6e7c
commit 160d0559e8
14 changed files with 114 additions and 63 deletions
+3 -1
View File
@@ -6,7 +6,7 @@ public sealed class HelpCommand : ICommand
public string Description => "Show this help message";
public void Execute(string? arguments, Action<string> printLine)
public Task ExecuteAsync(string? arguments, Action<string> printLine)
{
printLine("Available commands:");
@@ -14,5 +14,7 @@ public sealed class HelpCommand : ICommand
{
printLine($" {command.Name,-12} - {command.Description}");
}
return Task.CompletedTask;
}
}