10 references to MatchChoices
aspire (4)
Commands\AgentInitCommand.cs (3)
121var selected = ConsoleInteractionService.MatchChoices(value, s_skillChoices, static name => name); 183var selected = ConsoleInteractionService.MatchChoices(value, clients, static client => client.Id); 369var matchedClients = ConsoleInteractionService.MatchChoices(requestedAgents, _clients, static client => client.Id);
Interaction\ConsoleInteractionService.cs (1)
862var matched = MatchChoices(value, choicesList, choiceFormatter);
Aspire.Cli.Tests (6)
Interaction\ConsoleInteractionServiceTests.cs (5)
1556var result = ConsoleInteractionService.MatchChoices("alpha,alpha,beta", choices, c => c); 1569var result = ConsoleInteractionService.MatchChoices("all", choices, c => c); 1580var result = ConsoleInteractionService.MatchChoices("none", choices, c => c); 1591var result = ConsoleInteractionService.MatchChoices("alpha,nonexistent", choices, c => c); 1901var result = ConsoleInteractionService.MatchChoices("alpha,BETA", choices, c => c);
TestServices\TestInteractionService.cs (1)
217var matched = ConsoleInteractionService.MatchChoices(value, (bindingChoices ?? choices).ToArray(), choiceFormatter)