DesktopCpuSetSettings.cs 754 B

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