11 instantiations of ResourceSnapshotCommandArgument
Aspire.Cli.Tests (11)
Backchannel\ResourceSnapshotMapperTests.cs (3)
57
new
ResourceSnapshotCommandArgument
254
new
ResourceSnapshotCommandArgument
260
new
ResourceSnapshotCommandArgument
Commands\ResourceCommandTests.cs (1)
2412
return new
ResourceSnapshotCommandArgument
Mcp\ListResourcesToolTests.cs (7)
518
new
ResourceSnapshotCommandArgument
528
new
ResourceSnapshotCommandArgument
536
new
ResourceSnapshotCommandArgument
550
new
ResourceSnapshotCommandArgument
{ Name = "force", InputType = "Boolean", Value = "true" },
551
new
ResourceSnapshotCommandArgument
{ Name = "attempts", InputType = "Number", Value = "5", Disabled = true }
578
? Enumerable.Range(0, 40).Select(argumentIndex => new
ResourceSnapshotCommandArgument
953
new
ResourceSnapshotCommandArgument
22 references to ResourceSnapshotCommandArgument
aspire (18)
Backchannel\BackchannelJsonSerializerContext.cs (2)
51
[JsonSerializable(typeof(
ResourceSnapshotCommandArgument
))]
52
[JsonSerializable(typeof(
ResourceSnapshotCommandArgument
[]))]
Backchannel\ResourceSnapshotMapper.cs (2)
260
internal static ResourceCommandArgumentJson MapCommandArgumentInput(
ResourceSnapshotCommandArgument
input)
280
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; }
1224
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(