11 references to MatchChoices
aspire (5)
Commands\AgentInitCommand.cs (4)
127var selected = ConsoleInteractionService.MatchChoices(value, s_skillChoices, static name => name); 162var selected = ConsoleInteractionService.MatchChoices(value, clients, static client => client.Id); 343var matchedClients = ConsoleInteractionService.MatchChoices(requestedAgents, _clients, static client => client.Id); 401ConsoleInteractionService.MatchChoices(requestedSkills ?? CommonAgentApplicators.AspireSkillName,
Interaction\ConsoleInteractionService.cs (1)
947var matched = MatchChoices(value, choicesList, choiceFormatter);
Aspire.Cli.Tests (6)
Interaction\ConsoleInteractionServiceTests.cs (5)
2215var result = ConsoleInteractionService.MatchChoices("alpha,alpha,beta", choices, c => c); 2228var result = ConsoleInteractionService.MatchChoices("all", choices, c => c); 2239var result = ConsoleInteractionService.MatchChoices("none", choices, c => c); 2250var result = ConsoleInteractionService.MatchChoices("alpha,nonexistent", choices, c => c); 2560var result = ConsoleInteractionService.MatchChoices("alpha,BETA", choices, c => c);
TestServices\TestInteractionService.cs (1)
225var matched = ConsoleInteractionService.MatchChoices(value, (bindingChoices ?? choices).ToArray(), choiceFormatter)