Skip to content
Permalink
Browse files

Merge branch 'jitsu-ui'

  • Loading branch information...
chjj committed May 9, 2013
2 parents c9ba896 + c1db7d7 commit 229b3ca0493dbaf849a80b77b6b050cc4397dcbe
Showing with 33 additions and 0 deletions.
  1. +33 −0 lib/jitsu/commands/ui.js
@@ -0,0 +1,33 @@
/*
* ui.js: Simple alias to jitsu-ui.
*
* (C) 2012, Nodejitsu Inc.
*
*/

module.exports = function (callback) {
var spawn = require('child_process').spawn;

process.stdin.pause();

//
// TODO: Do some more searching here.
//
var ps = spawn('jitsu-ui', process.argv.slice(3), {
cwd: process.cwd(),
env: process.env,
setsid: false,
customFds: [0, 1, 2]
});

ps.on('exit', function (code) {
process.stdin.resume();
return callback();
});
};

module.exports.usage = [
'Runs jitsu-ui if installed.',
'',
'jitsu ui',
];

0 comments on commit 229b3ca

Please sign in to comment.
You can’t perform that action at this time.