21 instantiations of OptionWithLegacy
aspire (18)
Commands\AddCommand.cs (1)
41private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", AddCommandStrings.ProjectArgumentDescription);
Commands\AppHostLauncher.cs (1)
56internal static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\DescribeCommand.cs (1)
86private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\ExportCommand.cs (1)
30private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\IntegrationSearchCommand.cs (1)
23private readonly OptionWithLegacy<FileInfo?> _appHostOption = new("--apphost", "--project", AddCommandStrings.IntegrationSearchAppHostOptionDescription);
Commands\LogsCommand.cs (1)
89private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\McpCallCommand.cs (1)
37private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\McpToolsCommand.cs (1)
23private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\PipelineCommandBase.cs (1)
52protected static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", PublishCommandStrings.ProjectArgumentDescription);
Commands\ResourceCommand.cs (1)
43private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\RestoreCommand.cs (1)
36private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\SecretCommand.cs (1)
13internal static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\StopCommand.cs (1)
40private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", StopCommandStrings.ProjectArgumentDescription);
Commands\TelemetryCommandHelpers.cs (1)
53internal static OptionWithLegacy<FileInfo?> CreateAppHostOption() => new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\TerminalAttachCommand.cs (1)
47new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\TerminalPsCommand.cs (1)
44new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\UpdateCommand.cs (1)
44private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", UpdateCommandStrings.ProjectArgumentDescription);
Commands\WaitCommand.cs (1)
40private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Aspire.Cli.Tests (3)
Commands\OptionWithLegacyTests.cs (2)
14var option = new OptionWithLegacy<string>("--new-name", "--old-name", "Test option"); 29var option = new OptionWithLegacy<string>("--new-name", "--old-name", "Test option");
Commands\ResourceCommandHelpParserTests.cs (1)
91var appHostOption = new OptionWithLegacy<FileInfo?>("--apphost", "--project", "AppHost path");
30 references to OptionWithLegacy
aspire (26)
Commands\AddCommand.cs (1)
41private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", AddCommandStrings.ProjectArgumentDescription);
Commands\AppHostLauncher.cs (1)
56internal static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\DescribeCommand.cs (1)
86private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\ExportCommand.cs (1)
30private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\IntegrationSearchCommand.cs (1)
23private readonly OptionWithLegacy<FileInfo?> _appHostOption = new("--apphost", "--project", AddCommandStrings.IntegrationSearchAppHostOptionDescription);
Commands\LogsCommand.cs (1)
89private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\McpCallCommand.cs (1)
37private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\McpToolsCommand.cs (1)
23private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\OptionWithLegacy.cs (4)
44/// Extension methods for working with <see cref="OptionWithLegacy{T}"/>. 50/// <see cref="OptionWithLegacy{T}"/> on the specified option list. 52internal static void Add<T>(this IList<Option> options, OptionWithLegacy<T> optionWithLegacy) 62internal static T? GetValue<T>(this ParseResult parseResult, OptionWithLegacy<T> optionWithLegacy)
Commands\PipelineCommandBase.cs (1)
52protected static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", PublishCommandStrings.ProjectArgumentDescription);
Commands\ResourceCommand.cs (1)
43private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\ResourceCommandHelpParser.cs (1)
16OptionWithLegacy<FileInfo?> appHostOption)
Commands\RestoreCommand.cs (1)
36private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\SecretCommand.cs (1)
13internal static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\StopCommand.cs (1)
40private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", StopCommandStrings.ProjectArgumentDescription);
Commands\TelemetryCommandHelpers.cs (1)
53internal static OptionWithLegacy<FileInfo?> CreateAppHostOption() => new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\TelemetryLogsCommand.cs (1)
34private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = TelemetryCommandHelpers.CreateAppHostOption();
Commands\TelemetrySpansCommand.cs (1)
32private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = TelemetryCommandHelpers.CreateAppHostOption();
Commands\TelemetryTracesCommand.cs (1)
33private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = TelemetryCommandHelpers.CreateAppHostOption();
Commands\TerminalAttachCommand.cs (1)
46private static readonly OptionWithLegacy<FileInfo?> s_appHostOption =
Commands\TerminalPsCommand.cs (1)
43private static readonly OptionWithLegacy<FileInfo?> s_appHostOption =
Commands\UpdateCommand.cs (1)
44private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", UpdateCommandStrings.ProjectArgumentDescription);
Commands\WaitCommand.cs (1)
40private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Aspire.Cli.Tests (4)
Commands\OptionWithLegacyTests.cs (2)
14var option = new OptionWithLegacy<string>("--new-name", "--old-name", "Test option"); 29var option = new OptionWithLegacy<string>("--new-name", "--old-name", "Test option");
Commands\ResourceCommandHelpParserTests.cs (2)
87private static (CommandLineRootCommand Command, Argument<string> ResourceArgument, Argument<string> CommandArgument, OptionWithLegacy<FileInfo?> AppHostOption) CreateCommand() 91var appHostOption = new OptionWithLegacy<FileInfo?>("--apphost", "--project", "AppHost path");