Skip to content

Commit

Permalink
Merge pull request #613 from donejs/cli-fallthrough
Browse files Browse the repository at this point in the history
Add CLI fall-through back
  • Loading branch information
daffl committed Apr 7, 2016
2 parents e5c31d7 + bb2c904 commit de0bc2e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/cli/index.js
@@ -1,6 +1,7 @@
var program = require('commander');
var log = require('../utils').log;
var chalk = require('chalk');
var runBinary = require('./run-binary');

// commands
var add = require('./cmd-add');
Expand Down Expand Up @@ -43,6 +44,13 @@ program.command('help')
log(help());
});

// donejs <anything else>
program.command('*')
.description('Run DoneJS commands using the current DoneJS application')
.action(function() {
runBinary(program.rawArgs.slice(2));
});

function deprecationNotice(deprecated, instead) {
console.log();
console.log(chalk.yellow('DEPRECATION NOTICE:'));
Expand Down

0 comments on commit de0bc2e

Please sign in to comment.