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
import inquirer from 'inquirer'; const allfiles = [ {name: 'a', content: 'a'}, {name: 'b', content: 'b'}, {name: 'c', content: 'c'}, ]; const answers = await inquirer.prompt([ { type: 'list', name: 'answer', message: 'merge files ? (select source)', choices: allfiles, }, ]); console.log(answers); // { answer: undefined }
The text was updated successfully, but these errors were encountered:
worked with 9.3.5 but not since 10.0.0 is there a new way ? i didnt see anything in release comments
Sorry, something went wrong.
The issue is the choice list doesn't provide a value attribute.
I'll document it, I wasn't aware of that previous behavior. (And I think I'll add a validation step so it's the easy to spot)
thx for your clarification, feel free to close as i have quit using the object form.
6dfebd9
No branches or pull requests
The text was updated successfully, but these errors were encountered: