From ea9badba3eaba165adce84d908e94e9e393b32c7 Mon Sep 17 00:00:00 2001 From: Jeroen Engels Date: Wed, 30 Mar 2016 20:38:38 +0200 Subject: [PATCH] Ask whether to auto-commit in init questions --- lib/init/prompt.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/init/prompt.js b/lib/init/prompt.js index 2a051fa..fd8e9d6 100644 --- a/lib/init/prompt.js +++ b/lib/init/prompt.js @@ -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({