DesktopGpuSetSettings.cs 644 B

1234567891011121314151617181920212223
  1. using System.ComponentModel;
  2. using Spectre.Console.Cli;
  3. namespace RackPeek.Commands.Desktops.Gpus;
  4. public class DesktopGpuSetSettings : 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 gpu to update.")]
  11. public int Index { get; set; }
  12. [CommandOption("--model")]
  13. [Description("The gpu model name.")]
  14. public string? Model { get; set; }
  15. [CommandOption("--vram")]
  16. [Description("The amount of gpu vram in Gb.")]
  17. public int? Vram { get; set; }
  18. }