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