10 lines
209 B
JavaScript
10 lines
209 B
JavaScript
|
var inquirer = require('inquirer');
|
||
|
|
||
|
module.exports = (questions) => new Promise((resolve, reject) => {
|
||
|
if (!questions) {
|
||
|
return resolve({});
|
||
|
}
|
||
|
|
||
|
inquirer.prompt(questions).then(resolve, reject);
|
||
|
});
|