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

20 lines
468 B
C#

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