1 type derived from AddCommandPrompter
Aspire.Cli.Tests (1)
Commands\AddCommandTests.cs (1)
5274internal sealed class TestAddCommandPrompter(IInteractionService interactionService, CliExecutionContext executionContext) : AddCommandPrompter(interactionService, executionContext)
15 instantiations of AddCommandPrompter
Aspire.Cli.Tests (15)
Commands\AddCommandTests.cs (12)
109options.AddCommandPrompterFactory = provider => new AddCommandPrompter(provider.GetRequiredService<IInteractionService>(), provider.GetRequiredService<CliExecutionContext>()); 237var prompter = new AddCommandPrompter(interaction, workspace.CreateExecutionContext()); 368options.AddCommandPrompterFactory = provider => new AddCommandPrompter(provider.GetRequiredService<IInteractionService>(), provider.GetRequiredService<CliExecutionContext>()); 423var prompter = new AddCommandPrompter(interaction, workspace.CreateExecutionContext()); 3614var prompter = new AddCommandPrompter(interaction, executionContext); 3653var prompter = new AddCommandPrompter(interactionService, provider.GetRequiredService<CliExecutionContext>()); 3701var prompter = new AddCommandPrompter(interactionService, provider.GetRequiredService<CliExecutionContext>()); 3749var prompter = new AddCommandPrompter(interactionService, provider.GetRequiredService<CliExecutionContext>()); 3806var prompter = new AddCommandPrompter(interactionService, provider.GetRequiredService<CliExecutionContext>()); 3844var prompter = new AddCommandPrompter(interactionService, workspace.CreateExecutionContext()); 3899var prompter = new AddCommandPrompter(interactionService, workspace.CreateExecutionContext()); 4060options.AddCommandPrompterFactory = provider => new AddCommandPrompter(provider.GetRequiredService<IInteractionService>(), provider.GetRequiredService<CliExecutionContext>());
Interaction\ConsoleInteractionServiceTests.cs (2)
105var selected = await new AddCommandPrompter(interaction, CreateExecutionContext()).PromptForIntegrationAsync(packages, CancellationToken.None); 217var selected = await new AddCommandPrompter(interaction, CreateExecutionContext()).PromptForIntegrationVersionAsync(packages, "daily", CancellationToken.None);
Utils\CliTestHelper.cs (1)
469return new AddCommandPrompter(interactionService, serviceProvider.GetRequiredService<CliExecutionContext>());
15 references to AddCommandPrompter
aspire (3)
Commands\AddCommand.cs (2)
725var selectedSource = promptForPackage && candidates.Select(AddCommandPrompter.GetSourceIdentity).Distinct().Skip(1).Any() 796(packageVersions.Select(AddCommandPrompter.GetSourceIdentity).Distinct().Skip(1).Any() ? version.Package.Source : null));
Program.cs (1)
478builder.Services.AddSingleton<IAddCommandPrompter, AddCommandPrompter>();
Aspire.Cli.Tests (12)
Commands\AddCommandTests.cs (11)
233choice => choice.Group?.Id == AddCommandPrompter.GetSourceIdentity(selected)); 237var prompter = new AddCommandPrompter(interaction, workspace.CreateExecutionContext()); 423var prompter = new AddCommandPrompter(interaction, workspace.CreateExecutionContext()); 430Assert.Equal(packages.Select(AddCommandPrompter.GetSourceIdentity), 3614var prompter = new AddCommandPrompter(interaction, executionContext); 3653var prompter = new AddCommandPrompter(interactionService, provider.GetRequiredService<CliExecutionContext>()); 3701var prompter = new AddCommandPrompter(interactionService, provider.GetRequiredService<CliExecutionContext>()); 3749var prompter = new AddCommandPrompter(interactionService, provider.GetRequiredService<CliExecutionContext>()); 3806var prompter = new AddCommandPrompter(interactionService, provider.GetRequiredService<CliExecutionContext>()); 3844var prompter = new AddCommandPrompter(interactionService, workspace.CreateExecutionContext()); 3899var prompter = new AddCommandPrompter(interactionService, workspace.CreateExecutionContext());
Interaction\ConsoleInteractionServiceTests.cs (1)
21using AddCommandPrompter = Aspire.Cli.Commands.AddCommandPrompter;