We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
releated issue: #1091
options = { things: { message: 'App name?', type: 'input', required: true } };
If a user does not provide a non-empty app name, keep asking the same question.
The text was updated successfully, but these errors were encountered:
Today you can use the validate function for this, check the input and make sure there is content; if not return an error message.
validate
I'm leaning towards not augmenting the API with this extra option because:
required
input
Sorry, something went wrong.
I'm revising my opinion in 2024. I'd be happy to add a required property to the new @inquirer/input - with similar implementation to the same option on the checkbox prompt: https://github.com/SBoudrias/Inquirer.js/tree/master/packages/checkbox
@inquirer/input
No branches or pull requests
releated issue: #1091
If a user does not provide a non-empty app name, keep asking the same question.
The text was updated successfully, but these errors were encountered: