Skip to content

Add confirmation component #366

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

Closed
jvalkeal opened this issue Feb 11, 2022 · 0 comments · Fixed by #367
Closed

Add confirmation component #366

jvalkeal opened this issue Feb 11, 2022 · 0 comments · Fixed by #367
Milestone

Comments

@jvalkeal
Copy link
Contributor

Essentially ask yes/no from a user. Something like:

? Enter value (Y/n)

Enter something invalid:

? Enter value (Y/n)
>>> Sorry, your input is invalid: 'hi', try again

Accept default, or press y and enter:

? Enter value true

Context would then have boolean value when component exists.

@jvalkeal jvalkeal added this to the 2.1.0-M3 milestone Feb 11, 2022
jvalkeal added a commit to jvalkeal/spring-shell that referenced this issue Feb 11, 2022
- New ConfirmationInput component
- Add missing native resource config for templates.
- Add sample "component confirmation", use flag --no
  to switch default from yes to no.
- Fixes spring-projects#366
jvalkeal added a commit that referenced this issue Feb 11, 2022
- New ConfirmationInput component
- Add missing native resource config for templates.
- Add sample "component confirmation", use flag --no
  to switch default from yes to no.
- Fixes #366
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant