14 instantiations of OptionWithLegacy
aspire (12)
Commands\AddCommand.cs (1)
37private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", AddCommandStrings.ProjectArgumentDescription);
Commands\AppHostLauncher.cs (1)
39internal static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\DescribeCommand.cs (1)
80private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\ExecCommand.cs (1)
30private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", ExecCommandStrings.ProjectArgumentDescription);
Commands\LogsCommand.cs (1)
87private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\PipelineCommandBase.cs (1)
36protected static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", PublishCommandStrings.ProjectArgumentDescription);
Commands\ResourceCommand.cs (1)
34private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\ResourceCommandBase.cs (1)
26protected static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\StopCommand.cs (1)
35private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", StopCommandStrings.ProjectArgumentDescription);
Commands\TelemetryCommandHelpers.cs (1)
42internal static OptionWithLegacy<FileInfo?> CreateAppHostOption() => new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\UpdateCommand.cs (1)
34private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", UpdateCommandStrings.ProjectArgumentDescription);
Commands\WaitCommand.cs (1)
42private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Aspire.Cli.Tests (2)
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");
21 references to OptionWithLegacy
aspire (19)
Commands\AddCommand.cs (1)
37private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", AddCommandStrings.ProjectArgumentDescription);
Commands\AppHostLauncher.cs (1)
39internal static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\DescribeCommand.cs (1)
80private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\ExecCommand.cs (1)
30private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", ExecCommandStrings.ProjectArgumentDescription);
Commands\LogsCommand.cs (1)
87private 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)
36protected static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", PublishCommandStrings.ProjectArgumentDescription);
Commands\ResourceCommand.cs (1)
34private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\ResourceCommandBase.cs (1)
26protected static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\StopCommand.cs (1)
35private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", StopCommandStrings.ProjectArgumentDescription);
Commands\TelemetryCommandHelpers.cs (1)
42internal 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)
34private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = TelemetryCommandHelpers.CreateAppHostOption();
Commands\TelemetryTracesCommand.cs (1)
33private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = TelemetryCommandHelpers.CreateAppHostOption();
Commands\UpdateCommand.cs (1)
34private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", UpdateCommandStrings.ProjectArgumentDescription);
Commands\WaitCommand.cs (1)
42private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Aspire.Cli.Tests (2)
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");