Add printLine support for commands and implement basic UI controls rendering

This commit is contained in:
Stone_Red
2026-06-08 19:51:22 +02:00
parent fc71af028f
commit 8b900c9d58
14 changed files with 178 additions and 29 deletions
+3 -3
View File
@@ -8,13 +8,13 @@ public sealed class HelpCommand : ICommand
public string Description => "Show this help message";
public void Execute(string? arguments)
public void Execute(string? arguments, Action<string> printLine)
{
Console.WriteLine("Available commands:");
printLine("Available commands:");
foreach (ICommand command in CommandManager.GetCommands())
{
Console.WriteLine($" {command.Name,-12} - {command.Description}");
printLine($" {command.Name,-12} - {command.Description}");
}
}
}