Skip to content

Commit

Permalink
[alias] introduced jitsu host as alias for set remoteHost in config…
Browse files Browse the repository at this point in the history
…uration #369
  • Loading branch information
cronopio committed Jan 31, 2013
1 parent 55fa86a commit 21e8a5f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/jitsu.js
Expand Up @@ -213,6 +213,14 @@ jitsu.exec = function (command, callback) {
command[1] = 'app';
}

// Allow `jitsu host` as a shortcut for `jitsu config set remoteHost`
if (command[0] === 'host' && command.length === 2) {
command[3] = command[1];
command[0] = 'config';
command[1] = 'set';
command[2] = 'remoteHost';
}

jitsu.log.info('Executing command ' + command.join(' ').magenta);
jitsu.router.dispatch('on', command.join(' '), jitsu.log, function (err, shallow) {
if (err) {
Expand Down

0 comments on commit 21e8a5f

Please sign in to comment.