LaptopNicSetSettings.cs 755 B

1234567891011121314151617181920212223242526
  1. using System.ComponentModel;
  2. using Spectre.Console.Cli;
  3. namespace Shared.Rcl.Commands.Laptops.Nics;
  4. public class LaptopNicSetSettings : CommandSettings {
  5. [CommandArgument(0, "<Laptop>")]
  6. [Description("The Laptop name.")]
  7. public string LaptopName { get; set; } = default!;
  8. [CommandArgument(1, "<index>")]
  9. [Description("The index of the nic to update.")]
  10. public int Index { get; set; }
  11. [CommandOption("--type")]
  12. [Description("The nic port type e.g rj45 / sfp+")]
  13. public string? Type { get; set; }
  14. [CommandOption("--speed")]
  15. [Description("The port speed.")]
  16. public double? Speed { get; set; }
  17. [CommandOption("--ports")]
  18. [Description("The number of ports.")]
  19. public int? Ports { get; set; }
  20. }