DesktopCpuAddSettings.cs 632 B

1234567891011121314151617181920212223
  1. using System.ComponentModel;
  2. using Spectre.Console.Cli;
  3. namespace RackPeek.Commands.Desktops.Cpus;
  4. public class DesktopCpuAddSettings : CommandSettings
  5. {
  6. [CommandArgument(0, "<desktop>")]
  7. [Description("The desktop name.")]
  8. public string DesktopName { 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. }