LaptopDriveAddSettings.cs 532 B

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