DesktopDriveSetSettings.cs 646 B

1234567891011121314151617181920212223
  1. using System.ComponentModel;
  2. using Spectre.Console.Cli;
  3. namespace RackPeek.Commands.Desktops.Drive;
  4. public class DesktopDriveSetSettings : 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 drive index to update.")]
  11. public int Index { get; set; }
  12. [CommandOption("--type")]
  13. [Description("The drive type e.g hdd / ssd.")]
  14. public string? Type { get; set; }
  15. [CommandOption("--size")]
  16. [Description("The drive capacity in Gb.")]
  17. public int? Size { get; set; }
  18. }