Skip to content
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

Allow to unset the defaultChoice for confirm-input #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

LitoMore
Copy link

@LitoMore LitoMore commented Jun 3, 2023

This allows user to unset the defaultChoice.

Nothing will happen when the user simply presses enter with defaultChoice="unset".

BTW, do you think changing this option name to none is better?

@vadimdemedes
Copy link
Owner

Not sure we need this, as most confirm prompts I've seen always suggest a default choice. If you want user to explicitly type y or n and not accept enter as confirmation, you can disable submitOnEnter.

@LitoMore
Copy link
Author

LitoMore commented Jun 4, 2023

The SSH shows a (yes/no) and only accepts an exact string yes or no.

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 this pull request may close these issues.

None yet

2 participants