mirror of
https://github.com/danbulant/bpm
synced 2026-06-24 17:12:02 +00:00
Globalizate args & add peerInstall as command
This commit is contained in:
parent
2f73b81a13
commit
0034f39e81
1 changed files with 3 additions and 0 deletions
3
index.js
3
index.js
|
|
@ -5,6 +5,8 @@ var console = new Console;
|
||||||
var pkg = new Package;
|
var pkg = new Package;
|
||||||
const VERSION = "0.1"
|
const VERSION = "0.1"
|
||||||
|
|
||||||
|
global.args = args;
|
||||||
|
|
||||||
process.on('uncaughtException', function (err) {
|
process.on('uncaughtException', function (err) {
|
||||||
console.error("Uncaught exception:", err.message);
|
console.error("Uncaught exception:", err.message);
|
||||||
console.error(err.stack);
|
console.error(err.stack);
|
||||||
|
|
@ -35,6 +37,7 @@ switch(args.contents[0]){
|
||||||
break;
|
break;
|
||||||
case "i":
|
case "i":
|
||||||
case "install":
|
case "install":
|
||||||
|
case "peerInstall":
|
||||||
case "ls":
|
case "ls":
|
||||||
case "help":
|
case "help":
|
||||||
case "adduser":
|
case "adduser":
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue