GenerateHostsFileSettings.cs 773 B

12345678910111213141516171819202122
  1. using System.ComponentModel;
  2. using Spectre.Console.Cli;
  3. namespace Shared.Rcl.Commands.Exporters;
  4. public sealed class GenerateHostsFileSettings : CommandSettings {
  5. [CommandOption("--include-tags")]
  6. [Description("Comma-separated list of tags to include (e.g. prod,staging)")]
  7. public string? IncludeTags { get; init; }
  8. [CommandOption("--domain-suffix")]
  9. [Description("Optional domain suffix to append (e.g. home.local)")]
  10. public string? DomainSuffix { get; init; }
  11. [CommandOption("--no-localhost")]
  12. [Description("Do not include localhost defaults")]
  13. public bool NoLocalhost { get; init; }
  14. [CommandOption("-o|--output")]
  15. [Description("Write hosts file to file instead of stdout")]
  16. public string? OutputPath { get; init; }
  17. }