Skip to content
This repository has been archived by the owner on Jun 20, 2019. It is now read-only.

Commit

Permalink
Update init command
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor-Lopes committed May 30, 2018
1 parent 51b95c1 commit aa3a7f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,18 @@ module.exports = function initCommand(program) {
exit(1)
}

let shellStr = 'git clone https://github.com/Nucleus-Inc/MeanStarter.git'
let shellStr = 'git clone --progress https://github.com/Nucleus-Inc/MeanStarter.git'

if (typeof (option) === 'string') {
shellStr += ' ' + option
}

log(chalk.cyan('Started git repo cloning ...'))

if (exec(shellStr).code !== 0) {
log(chalk.red.bold('Oops ... Something wrong happened, please try again.'))
exit(1)
}
log(chalk.green.bold('Finish cloning Mean Starter !'))
})
}
}

0 comments on commit aa3a7f3

Please sign in to comment.