chore: merge CommandArgType into CommandArgSpec

This commit is contained in:
2026-08-22 22:22:32 +02:00
parent af98795cae
commit 45c66ca7db
5 changed files with 11 additions and 13 deletions
@@ -7,7 +7,7 @@ public sealed class ClearCommand : ICommand
{
public string Name => "clear";
public string Description => "Clears the console output.";
public IReadOnlyList<CommandArgSpec> Args { get; } = new CommandArgsBuilder().Build();
public IReadOnlyList<CommandArgSpec> Args { get; } = [];
public CommandResult Execute(CommandArgValues args) => CommandResult.Ok(clearOutput: true);
}
@@ -9,7 +9,7 @@ public sealed class HelpCommand(ICommandRegistry registry) : ICommand
{
public string Name => "help";
public string Description => "Lists all available commands.";
public IReadOnlyList<CommandArgSpec> Args { get; } = new CommandArgsBuilder().Build();
public IReadOnlyList<CommandArgSpec> Args { get; } = [];
private static string FormatUsage(ICommand command)
{