-
Notifications
You must be signed in to change notification settings - Fork 611
Update documentation: add example for the Text Prompt usage #1636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update documentation: add example for the Text Prompt usage #1636
Conversation
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?")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change this to int?
patriksvensson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
|
Well done @davide-pi 👏 |
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.