Ask whether to auto-commit in init questions

This commit is contained in:
Jeroen Engels 2016-03-30 20:38:38 +02:00
parent 906d70667c
commit ea9badba3e

View file

@ -37,6 +37,11 @@ var questions = [{
message: "How big should the avatars be? (in px)",
filter: parseInt,
default: 100
}, {
type: 'confirm',
name: 'commit',
message: "Do you want this badge to auto-commit when contributors are added?",
default: true
}];
var uniqueFiles = _.flow(
@ -57,6 +62,7 @@ module.exports = function prompt(cb) {
projectOwner: answers.projectOwner,
files: uniqueFiles([answers.contributorFile, answers.badgeFile]),
imageSize: answers.imageSize,
commit: answers.commit,
contributors: []
};
return cb({