Skip to content

Commit

Permalink
require confirmation for config.js package installs
Browse files Browse the repository at this point in the history
  • Loading branch information
atomantic committed Mar 15, 2019
1 parent e1ce661 commit 4845f9e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ inquirer.prompt([{
name: 'gitshots',
message: 'Do you want to use gitshots?',
default: false
},{
type: 'confirm',
name: 'packages',
message: 'Do you want to install packages from config.js?',
default: false
}]).then(function (answers) {
if(answers.gitshots){

Expand All @@ -33,6 +38,10 @@ inquirer.prompt([{
}
}

if(!answers.packages){
return console.log('skipping package installs')
}

const tasks = [];

['brew', 'cask', 'npm', 'gem'].forEach( type => {
Expand Down

0 comments on commit 4845f9e

Please sign in to comment.