DesktopNicSetSettings.cs 768 B

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