create-node-template
Version:
Create node.js or express boilerplate with one command
32 lines • 810 B
JavaScript
import inquirer from 'inquirer';
/**
* List prompt example
*/
export const listInquiry = [
{
type: 'list',
name: 'theme',
message: 'What do you want to do?',
choices: [
'Order a pizza',
'Make a reservation',
new inquirer.Separator(),
'Ask for opening hours',
{
name: 'Contact support',
disabled: 'Unavailable at this time',
},
'Talk to the receptionist',
],
},
{
type: 'list',
name: 'size',
message: 'What size do you need?',
choices: ['Jumbo', 'Large', 'Standard', 'Medium', 'Small', 'Micro'],
filter(val) {
return val.toLowerCase();
},
},
];
//# sourceMappingURL=list.js.map