Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

`die` is a local command.

  • Loading branch information...
commit dcc92aebcf434b8cf4e41d8d2042bc1efb2e27a8 1 parent ca93794
@mde mde authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 bin/cli.js
View
9 bin/cli.js
@@ -66,6 +66,11 @@ parser.parse(args);
cmds = parser.cmds;
opts = parser.opts;
+var die = function (str) {
+ console.log(str);
+ process.exit();
+};
+
var start = function () {
var cluster
@@ -112,7 +117,7 @@ var start = function () {
};
if (typeof opts.help != 'undefined') {
- m.die(usage);
+ die(usage);
}
else {
// `geddy app foo` or `geddy resource bar` etc. -- run generators
@@ -135,7 +140,7 @@ else {
cmd += 'gen:secret';
break;
default:
- m.die(cmds[0] + ' is not a Geddy command.');
+ die(cmds[0] + ' is not a Geddy command.');
}
cmd += ' generator=true'
exec(cmd, function (err, stdout, stderr) {
Please sign in to comment.
Something went wrong with that request. Please try again.