8 implementations of PromptForStringAsync
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
99
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 (6)
Commands\NewCommandTests.cs (1)
909
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)
871
public Task<string>
PromptForStringAsync
(string promptText, string? defaultValue = null, Func<string, ValidationResult>? validator = null, bool isSecret = false, bool required = false, CancellationToken cancellationToken = default)
Commands\UpdateCommandTests.cs (1)
953
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)
418
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)
37
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)
15 references to PromptForStringAsync
aspire (14)
Commands\AgentInitCommand.cs (1)
71
var workspaceRootPath = await _interactionService.
PromptForStringAsync
(
Commands\ConfigCommand.cs (4)
96
var key = await InteractionService.
PromptForStringAsync
(ConfigCommandStrings.GetCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
165
var key = await InteractionService.
PromptForStringAsync
(ConfigCommandStrings.SetCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
166
var value = await InteractionService.
PromptForStringAsync
(ConfigCommandStrings.SetCommand_PromptForValue, required: true, cancellationToken: cancellationToken);
319
var key = await InteractionService.
PromptForStringAsync
(ConfigCommandStrings.DeleteCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
Commands\NewCommand.cs (2)
358
return await interactionService.
PromptForStringAsync
(
369
return await interactionService.
PromptForStringAsync
(
Commands\PipelineCommandBase.cs (6)
763
InputType.Text => await InteractionService.
PromptForStringAsync
(
769
InputType.SecretText => await InteractionService.
PromptForStringAsync
(
782
_ => await InteractionService.
PromptForStringAsync
(promptText, defaultValue: input.Value?.EscapeMarkup(), required: input.Required, cancellationToken: cancellationToken)
790
return await InteractionService.
PromptForStringAsync
(promptText, defaultValue: input.Value?.EscapeMarkup(), required: input.Required, cancellationToken: cancellationToken);
812
return await InteractionService.
PromptForStringAsync
(promptText, defaultValue: input.Value?.EscapeMarkup(), required: input.Required, cancellationToken: cancellationToken);
832
return await InteractionService.
PromptForStringAsync
(
Projects\ProjectUpdater.cs (1)
109
var selectedPathForNewNuGetConfigFile = await interactionService.
PromptForStringAsync
(
Aspire.Cli.Tests (1)
Commands\UpdateCommandTests.cs (1)
954
=> _innerService.
PromptForStringAsync
(promptText, defaultValue, validator, isSecret, required, cancellationToken);