Skip to content

Commit

Permalink
fix massive bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Escalante committed May 16, 2016
1 parent 9d9f98e commit 268419a
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,23 +71,7 @@ exports.parseKeyValuesArray = function (arr) {
* @returns {Promise} - a promise with the answers.
*/

exports.questionnaire = function (questions, skip) {
return W.promise(function (resolve) {
var qs = []
var question
for (var i = 0; i < questions.length; i++) {
question = questions[i]
if (!_.includes(skip, question.name)) {
qs.push(question)
}
}
return inquirer.prompt(qs,
function (answers) {
return resolve(answers)
}
)
})
}
exports.questionnaire = inquirer.prompt.bind(inquirer)

/**
* Strips any null values or setters that argparse adds to the args object
Expand Down

0 comments on commit 268419a

Please sign in to comment.