add version command

This commit is contained in:
Iuri Matias 2017-12-19 10:20:05 -05:00
parent 6a27559de4
commit a99ee73ef8
1 changed files with 11 additions and 0 deletions

View File

@ -17,6 +17,7 @@ class Cmd {
this.simulator(); this.simulator();
this.test(); this.test();
this.upload(); this.upload();
this.versionCmd();
this.otherCommands(); this.otherCommands();
//If no arguments are passed display help by default //If no arguments are passed display help by default
@ -156,6 +157,16 @@ class Cmd {
}); });
} }
versionCmd() {
program
.command('version')
.description('output the version number')
.action(function () {
console.log(embark.version);
process.exit(0);
});
}
otherCommands() { otherCommands() {
program program
.action(function (env) { .action(function (env) {