mirror of https://github.com/embarklabs/embark.git
add version command
This commit is contained in:
parent
6a27559de4
commit
a99ee73ef8
11
lib/cmd.js
11
lib/cmd.js
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue