DesktopNicAddSettings.cs 629 B

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