LaptopCpuAddSettings.cs 627 B

1234567891011121314151617181920212223
  1. using System.ComponentModel;
  2. using Spectre.Console.Cli;
  3. namespace RackPeek.Commands.Laptops.Cpus;
  4. public class LaptopCpuAddSettings : CommandSettings
  5. {
  6. [CommandArgument(0, "<Laptop>")]
  7. [Description("The Laptop name.")]
  8. public string LaptopName { get; set; } = default!;
  9. [CommandOption("--model")]
  10. [Description("The model name.")]
  11. public string? Model { get; set; }
  12. [CommandOption("--cores")]
  13. [Description("The number of cpu cores.")]
  14. public int? Cores { get; set; }
  15. [CommandOption("--threads")]
  16. [Description("The number of cpu threads.")]
  17. public int? Threads { get; set; }
  18. }