Files
RemSox/UI/CLI/Commands/HelpCommand.cs
T
2026-06-08 22:05:11 +02:00

18 lines
459 B
C#

namespace RemSox.UI.CLI.Commands;
public sealed class HelpCommand : ICommand
{
public string Name => "help";
public string Description => "Show this help message";
public void Execute(string? arguments, Action<string> printLine)
{
printLine("Available commands:");
foreach (ICommand command in CommandManager.GetCommands())
{
printLine($" {command.Name,-12} - {command.Description}");
}
}
}