14 instantiations of OptionWithLegacy
aspire (12)
Commands\AddCommand.cs (1)
37
private static readonly OptionWithLegacy<FileInfo?> s_appHostOption =
new
("--apphost", "--project", AddCommandStrings.ProjectArgumentDescription);
Commands\AppHostLauncher.cs (1)
39
internal static readonly OptionWithLegacy<FileInfo?> s_appHostOption =
new
("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\DescribeCommand.cs (1)
80
private static readonly OptionWithLegacy<FileInfo?> s_appHostOption =
new
("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\ExecCommand.cs (1)
30
private static readonly OptionWithLegacy<FileInfo?> s_appHostOption =
new
("--apphost", "--project", ExecCommandStrings.ProjectArgumentDescription);
Commands\LogsCommand.cs (1)
87
private static readonly OptionWithLegacy<FileInfo?> s_appHostOption =
new
("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\PipelineCommandBase.cs (1)
36
protected static readonly OptionWithLegacy<FileInfo?> s_appHostOption =
new
("--apphost", "--project", PublishCommandStrings.ProjectArgumentDescription);
Commands\ResourceCommand.cs (1)
34
private static readonly OptionWithLegacy<FileInfo?> s_appHostOption =
new
("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\ResourceCommandBase.cs (1)
26
protected static readonly OptionWithLegacy<FileInfo?> s_appHostOption =
new
("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\StopCommand.cs (1)
35
private static readonly OptionWithLegacy<FileInfo?> s_appHostOption =
new
("--apphost", "--project", StopCommandStrings.ProjectArgumentDescription);
Commands\TelemetryCommandHelpers.cs (1)
42
internal static OptionWithLegacy<FileInfo?> CreateAppHostOption() =>
new
("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\UpdateCommand.cs (1)
34
private static readonly OptionWithLegacy<FileInfo?> s_appHostOption =
new
("--apphost", "--project", UpdateCommandStrings.ProjectArgumentDescription);
Commands\WaitCommand.cs (1)
42
private static readonly OptionWithLegacy<FileInfo?> s_appHostOption =
new
("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Aspire.Cli.Tests (2)
Commands\OptionWithLegacyTests.cs (2)
14
var option = new
OptionWithLegacy
<string>("--new-name", "--old-name", "Test option");
29
var option = new
OptionWithLegacy
<string>("--new-name", "--old-name", "Test option");
21 references to OptionWithLegacy
aspire (19)
Commands\AddCommand.cs (1)
37
private static readonly
OptionWithLegacy
<FileInfo?> s_appHostOption = new("--apphost", "--project", AddCommandStrings.ProjectArgumentDescription);
Commands\AppHostLauncher.cs (1)
39
internal static readonly
OptionWithLegacy
<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\DescribeCommand.cs (1)
80
private static readonly
OptionWithLegacy
<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\ExecCommand.cs (1)
30
private static readonly
OptionWithLegacy
<FileInfo?> s_appHostOption = new("--apphost", "--project", ExecCommandStrings.ProjectArgumentDescription);
Commands\LogsCommand.cs (1)
87
private 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.
52
internal static void Add<T>(this IList<Option> options,
OptionWithLegacy
<T> optionWithLegacy)
62
internal static T? GetValue<T>(this ParseResult parseResult,
OptionWithLegacy
<T> optionWithLegacy)
Commands\PipelineCommandBase.cs (1)
36
protected static readonly
OptionWithLegacy
<FileInfo?> s_appHostOption = new("--apphost", "--project", PublishCommandStrings.ProjectArgumentDescription);
Commands\ResourceCommand.cs (1)
34
private static readonly
OptionWithLegacy
<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\ResourceCommandBase.cs (1)
26
protected static readonly
OptionWithLegacy
<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\StopCommand.cs (1)
35
private static readonly
OptionWithLegacy
<FileInfo?> s_appHostOption = new("--apphost", "--project", StopCommandStrings.ProjectArgumentDescription);
Commands\TelemetryCommandHelpers.cs (1)
42
internal static
OptionWithLegacy
<FileInfo?> CreateAppHostOption() => new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Commands\TelemetryLogsCommand.cs (1)
34
private static readonly
OptionWithLegacy
<FileInfo?> s_appHostOption = TelemetryCommandHelpers.CreateAppHostOption();
Commands\TelemetrySpansCommand.cs (1)
34
private static readonly
OptionWithLegacy
<FileInfo?> s_appHostOption = TelemetryCommandHelpers.CreateAppHostOption();
Commands\TelemetryTracesCommand.cs (1)
33
private static readonly
OptionWithLegacy
<FileInfo?> s_appHostOption = TelemetryCommandHelpers.CreateAppHostOption();
Commands\UpdateCommand.cs (1)
34
private static readonly
OptionWithLegacy
<FileInfo?> s_appHostOption = new("--apphost", "--project", UpdateCommandStrings.ProjectArgumentDescription);
Commands\WaitCommand.cs (1)
42
private static readonly
OptionWithLegacy
<FileInfo?> s_appHostOption = new("--apphost", "--project", SharedCommandStrings.AppHostOptionDescription);
Aspire.Cli.Tests (2)
Commands\OptionWithLegacyTests.cs (2)
14
var
option = new OptionWithLegacy<string>("--new-name", "--old-name", "Test option");
29
var
option = new OptionWithLegacy<string>("--new-name", "--old-name", "Test option");