(#916) fixed missing call to Validate when using CommandConstructorBinder

This commit is contained in:
Nils Andresen
2022-08-17 16:18:13 +02:00
committed by Patrik Svensson
parent 78d841e3dc
commit 0d19ccd8a6
5 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,11 @@
namespace Spectre.Console.Tests.Data;
[Description("The turtle command.")]
public class TurtleCommand : AnimalCommand<TurtleSettings>
{
public override int Execute(CommandContext context, TurtleSettings settings)
{
DumpSettings(context, settings);
return 0;
}
}