LaptopDriveSetSettings.cs 644 B

12345678910111213141516171819202122
  1. using System.ComponentModel;
  2. using Spectre.Console.Cli;
  3. namespace Shared.Rcl.Commands.Laptops.Drive;
  4. public class LaptopDriveSetSettings : CommandSettings {
  5. [CommandArgument(0, "<Laptop>")]
  6. [Description("The Laptop name.")]
  7. public string LaptopName { get; set; } = default!;
  8. [CommandArgument(1, "<index>")]
  9. [Description("The drive index to update.")]
  10. public int Index { get; set; }
  11. [CommandOption("--type")]
  12. [Description("The drive type e.g hdd / ssd.")]
  13. public string? Type { get; set; }
  14. [CommandOption("--size")]
  15. [Description("The drive capacity in Gb.")]
  16. public int? Size { get; set; }
  17. }