4 instantiations of ResourceSnapshotCommandArgument
Aspire.Cli.Tests (4)
Backchannel\ResourceSnapshotMapperTests.cs (3)
57new ResourceSnapshotCommandArgument 254new ResourceSnapshotCommandArgument 260new ResourceSnapshotCommandArgument
Commands\ResourceCommandTests.cs (1)
2372return new ResourceSnapshotCommandArgument
22 references to ResourceSnapshotCommandArgument
aspire (18)
Backchannel\BackchannelJsonSerializerContext.cs (2)
50[JsonSerializable(typeof(ResourceSnapshotCommandArgument))] 51[JsonSerializable(typeof(ResourceSnapshotCommandArgument[]))]
Backchannel\ResourceSnapshotMapper.cs (2)
254internal static ResourceCommandArgumentJson MapCommandArgumentInput(ResourceSnapshotCommandArgument input) 274private static bool IsSecretCommandArgument(ResourceSnapshotCommandArgument input)
Commands\ResourceCommand.cs (12)
278private static (JsonObject Arguments, string? ErrorMessage) CreateCommandArguments(ResourceSnapshotCommandArgument[] argumentInputs, string[] capturedArguments, CommandArgumentParseMode parseMode) 281var options = new Dictionary<ResourceSnapshotCommandArgument, Option>(); 287foreach (var argument in argumentInputs) 326foreach (var argument in argumentInputs) 381private static Option CreateCommandArgumentOption(ResourceSnapshotCommandArgument argument, CommandArgumentParseMode parseMode) 456private static bool ShouldValidateRequiredOption(ResourceSnapshotCommandArgument argument, CommandArgumentParseMode parseMode) 464private static bool ShouldValidateChoiceOptions(ResourceSnapshotCommandArgument argument, CommandArgumentParseMode parseMode) 471private static bool ShouldValidateDisabledOption(ResourceSnapshotCommandArgument argument, CommandArgumentParseMode parseMode) 478private static bool IsBooleanInput(ResourceSnapshotCommandArgument argument) 483private static bool IsNumberInput(ResourceSnapshotCommandArgument argument) 853private static string GetCommandOptionLabel(ResourceSnapshotCommandArgument argument) 861private 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)
2339private static ResourceSnapshotCommand CreateCommand(string name, params ResourceSnapshotCommandArgument[] argumentInputs) 2344private static ResourceSnapshotCommand CreateCommand(string name, string? description, params ResourceSnapshotCommandArgument[] argumentInputs) 2349private static ResourceSnapshotCommand CreateCommand(string name, string? description, string state, string? visibility, params ResourceSnapshotCommandArgument[] argumentInputs) 2361private static ResourceSnapshotCommandArgument CreateArgument(