LaptopNicAddSettings.cs 637 B

12345678910111213141516171819202122
  1. using System.ComponentModel;
  2. using Spectre.Console.Cli;
  3. namespace Shared.Rcl.Commands.Laptops.Nics;
  4. public class LaptopNicAddSettings : 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 nic port type e.g rj45 / sfp+")]
  10. public string? Type { get; set; }
  11. [CommandOption("--speed")]
  12. [Description("The port speed.")]
  13. public double? Speed { get; set; }
  14. [CommandOption("--ports")]
  15. [Description("The number of ports.")]
  16. public int? Ports { get; set; }
  17. }