Upstream Tyrrrz/CliFx state of the touched files before 72b7d869fc

This commit is contained in:
upstream committed 2026-08-28 10:12:58 +02:00
1 parent 8f11b8ff38
commit 50964082ba
6 files changed
+3 -132

No files matched your search

+2 -10
View File
@@ -13,7 +13,6 @@ public class CommandDescriptor(
Type type,
string? name,
string? description,
IReadOnlyList<string> examples,
IReadOnlyList<CommandInputDescriptor> inputs
)
{
@@ -31,9 +30,6 @@ public class CommandDescriptor(
/// <inheritdoc cref="CommandAttribute.Description" />
public string? Description { get; } = description;
/// <inheritdoc cref="CommandAttribute.Examples" />
public IReadOnlyList<string> Examples { get; } = examples;
/// <summary>
/// Inputs (parameters and options) of the command;
/// </summary>
@@ -61,10 +57,6 @@ public class CommandDescriptor(
public class CommandDescriptor<
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)]
TCommand
>(
string? name,
string? description,
IReadOnlyList<string> examples,
IReadOnlyList<CommandInputDescriptor> inputs
) : CommandDescriptor(typeof(TCommand), name, description, examples, inputs)
>(string? name, string? description, IReadOnlyList<CommandInputDescriptor> inputs)
: CommandDescriptor(typeof(TCommand), name, description, inputs)
where TCommand : ICommand;