7 implementations of PromptForStringAsync
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
59public 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)
85public 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)
638public 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)
906public 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)
391public 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)
34public 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)
245return await interactionService.PromptForStringAsync( 254return await interactionService.PromptForStringAsync(
Commands\PublishCommandBase.cs (6)
581InputType.Text => await InteractionService.PromptForStringAsync( 587InputType.SecretText => await InteractionService.PromptForStringAsync( 600_ => await InteractionService.PromptForStringAsync(promptText, defaultValue: input.Value, required: input.Required, cancellationToken: cancellationToken) 608return await InteractionService.PromptForStringAsync(promptText, defaultValue: input.Value, required: input.Required, cancellationToken: cancellationToken); 630return await InteractionService.PromptForStringAsync(promptText, defaultValue: input.Value, required: input.Required, cancellationToken: cancellationToken); 650return await InteractionService.PromptForStringAsync(
Projects\ProjectUpdater.cs (1)
108var selectedPathForNewNuGetConfigFile = await interactionService.PromptForStringAsync(