mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 21:38:16 +08:00
Move Spectre.Console.Cli to it's own package
This commit is contained in:

committed by
Patrik Svensson

parent
b600832e00
commit
36ca22ffac
11
test/Spectre.Console.Cli.Tests/Data/Settings/CatSettings.cs
Normal file
11
test/Spectre.Console.Cli.Tests/Data/Settings/CatSettings.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace Spectre.Console.Tests.Data;
|
||||
|
||||
public class CatSettings : MammalSettings
|
||||
{
|
||||
[CommandOption("--agility <VALUE>")]
|
||||
[TypeConverter(typeof(CatAgilityConverter))]
|
||||
[DefaultValue(10)]
|
||||
[Description("The agility between 0 and 100.")]
|
||||
[PositiveNumberValidator("Agility cannot be negative.")]
|
||||
public int Agility { get; set; }
|
||||
}
|
Reference in New Issue
Block a user