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