-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
question not working with choices #76
Comments
It uses |
This worked for me: #!/usr/bin/env zx
const prompts = require('prompts') // npm install prompts
const questions = [
{
type: 'text',
name: 'dish',
message: 'Would you like some cocktail? ',
},
{
type: 'select',
name: 'version',
message: 'Which part do you want to bump? ',
choices: [
{ title: 'patch: ' + nextPatch, value: nextPatch },
{ title: 'minor: ' + nextMinor, value: nextMinor },
{ title: 'major: ' + nextMajor, value: nextMajor },
],
},
]
const response = await prompts(questions)
const newVersion = response.version
if (newVersion) {
console.log(newVersion)
} |
does it work? the choices still not working,how can i question with options? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
The choices are displayed when asking a question that contains choices.
Actual Behavior
No choices are displayed: the user can enter any value.
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: