11 instantiations of ResourceSnapshotCommandArgument
Aspire.Cli.Tests (11)
Backchannel\ResourceSnapshotMapperTests.cs (3)
106
new
ResourceSnapshotCommandArgument
303
new
ResourceSnapshotCommandArgument
309
new
ResourceSnapshotCommandArgument
Commands\ResourceCommandTests.cs (1)
2412
return new
ResourceSnapshotCommandArgument
Mcp\ListResourcesToolTests.cs (7)
520
new
ResourceSnapshotCommandArgument
530
new
ResourceSnapshotCommandArgument
538
new
ResourceSnapshotCommandArgument
552
new
ResourceSnapshotCommandArgument
{ Name = "force", InputType = "Boolean", Value = "true" },
553
new
ResourceSnapshotCommandArgument
{ Name = "attempts", InputType = "Number", Value = "5", Disabled = true }
580
? Enumerable.Range(0, 40).Select(argumentIndex => new
ResourceSnapshotCommandArgument
955
new
ResourceSnapshotCommandArgument
22 references to ResourceSnapshotCommandArgument
aspire (18)
Backchannel\BackchannelJsonSerializerContext.cs (2)
51
[JsonSerializable(typeof(
ResourceSnapshotCommandArgument
))]
52
[JsonSerializable(typeof(
ResourceSnapshotCommandArgument
[]))]
Backchannel\ResourceSnapshotMapper.cs (2)
261
internal static ResourceCommandArgumentJson MapCommandArgumentInput(
ResourceSnapshotCommandArgument
input)
281
private static bool IsSecretCommandArgument(
ResourceSnapshotCommandArgument
input)
Commands\ResourceCommand.cs (12)
279
private static (JsonObject Arguments, string? ErrorMessage) CreateCommandArguments(
ResourceSnapshotCommandArgument
[] argumentInputs, string[] capturedArguments, CommandArgumentParseMode parseMode)
282
var options = new Dictionary<
ResourceSnapshotCommandArgument
, Option>();
288
foreach (
var
argument in argumentInputs)
327
foreach (
var
argument in argumentInputs)
382
private static Option CreateCommandArgumentOption(
ResourceSnapshotCommandArgument
argument, CommandArgumentParseMode parseMode)
457
private static bool ShouldValidateRequiredOption(
ResourceSnapshotCommandArgument
argument, CommandArgumentParseMode parseMode)
465
private static bool ShouldValidateChoiceOptions(
ResourceSnapshotCommandArgument
argument, CommandArgumentParseMode parseMode)
472
private static bool ShouldValidateDisabledOption(
ResourceSnapshotCommandArgument
argument, CommandArgumentParseMode parseMode)
479
private static bool IsBooleanInput(
ResourceSnapshotCommandArgument
argument)
484
private static bool IsNumberInput(
ResourceSnapshotCommandArgument
argument)
854
private static string GetCommandOptionLabel(
ResourceSnapshotCommandArgument
argument)
862
private static string GetArgumentDescription(
ResourceSnapshotCommandArgument
argument, HashSet<string> cliOptionNames)
src\Aspire.Hosting\Backchannel\BackchannelDataTypes.cs (2)
552
public
ResourceSnapshotCommandArgument
[]? ArgumentInputs { get; init; }
1233
public
ResourceSnapshotCommandArgument
[] ArgumentInputs { get; init; } = [];
Aspire.Cli.Tests (4)
Commands\ResourceCommandTests.cs (4)
2379
private static ResourceSnapshotCommand CreateCommand(string name, params
ResourceSnapshotCommandArgument
[] argumentInputs)
2384
private static ResourceSnapshotCommand CreateCommand(string name, string? description, params
ResourceSnapshotCommandArgument
[] argumentInputs)
2389
private static ResourceSnapshotCommand CreateCommand(string name, string? description, string state, string? visibility, params
ResourceSnapshotCommandArgument
[] argumentInputs)
2401
private static
ResourceSnapshotCommandArgument
CreateArgument(