7 implementations of PromptForStringAsync
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
62
public 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)
87
public 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)
639
public 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)
917
public 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)
374
public 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)
29
public 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)
35
public 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)
97
var key = await InteractionService.
PromptForStringAsync
(ConfigCommandStrings.GetCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
167
var key = await InteractionService.
PromptForStringAsync
(ConfigCommandStrings.SetCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
168
var value = await InteractionService.
PromptForStringAsync
(ConfigCommandStrings.SetCommand_PromptForValue, required: true, cancellationToken: cancellationToken);
271
var key = await InteractionService.
PromptForStringAsync
(ConfigCommandStrings.DeleteCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
Commands\NewCommand.cs (2)
246
return await interactionService.
PromptForStringAsync
(
255
return await interactionService.
PromptForStringAsync
(
Commands\PipelineCommandBase.cs (6)
742
InputType.Text => await InteractionService.
PromptForStringAsync
(
748
InputType.SecretText => await InteractionService.
PromptForStringAsync
(
761
_ => await InteractionService.
PromptForStringAsync
(promptText, defaultValue: input.Value, required: input.Required, cancellationToken: cancellationToken)
769
return await InteractionService.
PromptForStringAsync
(promptText, defaultValue: input.Value, required: input.Required, cancellationToken: cancellationToken);
791
return await InteractionService.
PromptForStringAsync
(promptText, defaultValue: input.Value, required: input.Required, cancellationToken: cancellationToken);
811
return await InteractionService.
PromptForStringAsync
(
Projects\ProjectUpdater.cs (1)
109
var selectedPathForNewNuGetConfigFile = await interactionService.
PromptForStringAsync
(