7 implementations of PromptForStringAsync
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
62public async Task<string> PromptForStringAsync(string promptText, string? defaultValue = null, Func<string, ValidationResult>? validator = null, bool isSecret = false, bool required = false, CancellationToken cancellationToken = default)
Interaction\ExtensionInteractionService.cs (1)
87public async Task<string> PromptForStringAsync(string promptText, string? defaultValue = null, Func<string, ValidationResult>? validator = null, bool isSecret = false, bool required = false, CancellationToken cancellationToken = default)
Aspire.Cli.Tests (5)
Commands\NewCommandTests.cs (1)
639public Task<string> PromptForStringAsync(string promptText, string? defaultValue = null, Func<string, ValidationResult>? validator = null, bool isSecret = false, bool required = false, CancellationToken cancellationToken = default)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
917public Task<string> PromptForStringAsync(string promptText, string? defaultValue = null, Func<string, ValidationResult>? validator = null, bool isSecret = false, bool required = false, CancellationToken cancellationToken = default)
Templating\DotNetTemplateFactoryTests.cs (1)
374public Task<string> PromptForStringAsync(string promptText, string? defaultValue = null, Func<string, ValidationResult>? validator = null, bool isSecret = false, bool required = false, CancellationToken cancellationToken = default)
TestServices\TestConsoleInteractionService.cs (1)
29public Task<string> PromptForStringAsync(string promptText, string? defaultValue = null, Func<string, ValidationResult>? validator = null, bool isSecret = false, bool required = false, CancellationToken cancellationToken = default)
TestServices\TestExtensionInteractionService.cs (1)
35public Task<string> PromptForStringAsync(string promptText, string? defaultValue = null, Func<string, ValidationResult>? validator = null, bool isSecret = false, bool required = false, CancellationToken cancellationToken = default)
13 references to PromptForStringAsync
aspire (13)
Commands\ConfigCommand.cs (4)
97var key = await InteractionService.PromptForStringAsync(ConfigCommandStrings.GetCommand_PromptForKey, required: true, cancellationToken: cancellationToken); 167var key = await InteractionService.PromptForStringAsync(ConfigCommandStrings.SetCommand_PromptForKey, required: true, cancellationToken: cancellationToken); 168var value = await InteractionService.PromptForStringAsync(ConfigCommandStrings.SetCommand_PromptForValue, required: true, cancellationToken: cancellationToken); 271var key = await InteractionService.PromptForStringAsync(ConfigCommandStrings.DeleteCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
Commands\NewCommand.cs (2)
246return await interactionService.PromptForStringAsync( 255return await interactionService.PromptForStringAsync(
Commands\PipelineCommandBase.cs (6)
742InputType.Text => await InteractionService.PromptForStringAsync( 748InputType.SecretText => await InteractionService.PromptForStringAsync( 761_ => await InteractionService.PromptForStringAsync(promptText, defaultValue: input.Value, required: input.Required, cancellationToken: cancellationToken) 769return await InteractionService.PromptForStringAsync(promptText, defaultValue: input.Value, required: input.Required, cancellationToken: cancellationToken); 791return await InteractionService.PromptForStringAsync(promptText, defaultValue: input.Value, required: input.Required, cancellationToken: cancellationToken); 811return await InteractionService.PromptForStringAsync(
Projects\ProjectUpdater.cs (1)
109var selectedPathForNewNuGetConfigFile = await interactionService.PromptForStringAsync(