chore: merge CommandArgType into CommandArgSpec
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user