LaptopDriveAddSettings.cs 529 B

12345678910111213141516171819
  1. using System.ComponentModel;
  2. using Spectre.Console.Cli;
  3. namespace RackPeek.Commands.Laptops.Drive;
  4. public class LaptopDriveAddSettings : CommandSettings
  5. {
  6. [CommandArgument(0, "<laptop>")]
  7. [Description("The name of the Laptop.")]
  8. public string LaptopName { get; set; } = default!;
  9. [CommandOption("--type")]
  10. [Description("The drive type e.g hdd / ssd.")]
  11. public string? Type { get; set; }
  12. [CommandOption("--size")]
  13. [Description("The drive capacity in GB:.")]
  14. public int? Size { get; set; }
  15. }