mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-17 01:12:50 +08:00

Also moves tests to `./test` which makes it possible for all test projects to share the same .editorconfig files and similar.
15 lines
442 B
C#
15 lines
442 B
C#
using System.ComponentModel;
|
|
using Spectre.Console.Cli;
|
|
|
|
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; }
|
|
}
|
|
} |