mirror of
https://github.com/danbulant/bpm
synced 2026-06-16 21:11:17 +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;
|
||||
const VERSION = "0.1"
|
||||
|
||||
global.args = args;
|
||||
|
||||
process.on('uncaughtException', function (err) {
|
||||
console.error("Uncaught exception:", err.message);
|
||||
console.error(err.stack);
|
||||
|
|
@ -35,6 +37,7 @@ switch(args.contents[0]){
|
|||
break;
|
||||
case "i":
|
||||
case "install":
|
||||
case "peerInstall":
|
||||
case "ls":
|
||||
case "help":
|
||||
case "adduser":
|
||||
|
|
|
|||
Loading…
Reference in a new issue