Update documentation: add example for the Text Prompt usage#1636
Merged
patriksvensson merged 2 commits intospectreconsole:mainfrom Sep 10, 2024
davide-pi:fix/issue-1615-missing-examples-in-doc
Merged
Update documentation: add example for the Text Prompt usage#1636patriksvensson merged 2 commits intospectreconsole:mainfrom davide-pi:fix/issue-1615-missing-examples-in-doc
patriksvensson merged 2 commits intospectreconsole:mainfrom
davide-pi:fix/issue-1615-missing-examples-in-doc
Conversation
patriksvensson
requested changes
Sep 9, 2024
docs/input/prompts/text.md
Outdated
| var name = AnsiConsole.Prompt( | ||
| new TextPrompt<string>("What's your name?")); | ||
| var age = AnsiConsole.Prompt( | ||
| new TextPrompt<short>("What's your age?")); |
Contributor
There was a problem hiding this comment.
Can we change this to int?
docs/input/prompts/text.md
Outdated
| ```csharp | ||
| // Ask the user a couple of simple questions | ||
| var name = AnsiConsole.Ask<string>("What's your name?"); | ||
| var age = AnsiConsole.Ask<short>("What's your age?"); |
Contributor
There was a problem hiding this comment.
Can we change this to int?
Contributor
|
Well done @davide-pi 👏 |
This was referenced Jul 22, 2025
This was referenced Jul 30, 2025
This was referenced Feb 16, 2026
This was referenced Feb 24, 2026
Closed
Open
This was referenced Mar 4, 2026
This was referenced Mar 12, 2026
This was referenced Mar 20, 2026
This was referenced Mar 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #1615
[ ] All newly added code is adequately covered by testsChanges
Add some example in the
TextPromptdocumentation pagePlease upvote 👍 this pull request if you are interested in it.