Skip to content

Commit

Permalink
Merge branch 'main' into ask-before-editing-pr-body
Browse files Browse the repository at this point in the history
  • Loading branch information
geofflamrock committed Dec 12, 2024
2 parents cc6a020 + d5b2c37 commit 16c876f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Stack/Infrastructure/ConsoleInputProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ public string Text(string prompt, string? defaultValue = null)
var textPrompt = new TextPrompt<string>(prompt);

if (defaultValue is not null)
textPrompt.DefaultValue(defaultValue);
textPrompt.DefaultValue(defaultValue.EscapeMarkup());

return console.Prompt(textPrompt);
var result = console.Prompt(textPrompt);

return result.RemoveMarkup();
}

public string Select(string prompt, string[] choices)
Expand Down

0 comments on commit 16c876f

Please sign in to comment.