mirror of
https://github.com/all-contributors/cli.git
synced 2025-01-09 13:36:29 +00:00
Ask whether to auto-commit in init questions
This commit is contained in:
parent
906d70667c
commit
ea9badba3e
1 changed files with 6 additions and 0 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue