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