Files
RemSox/UI/CLI/Commands/HelpCommand.cs
T
2026-06-08 21:30:40 +02:00

20 lines
481 B
C#

using RemSox.UI.CLI;
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}");
}
}
}