Add commands modules manually to yargs
This commit is contained in:
parent
2c4f4848db
commit
17975aba21
12
app.js
12
app.js
@ -74,13 +74,17 @@ yargs.usage('Usage: $0 <command> [options]')
|
|||||||
.strict()
|
.strict()
|
||||||
// Set width to 90 cols
|
// Set width to 90 cols
|
||||||
.wrap(100)
|
.wrap(100)
|
||||||
// Automatically loads the commands
|
|
||||||
.commandDir('commands')
|
|
||||||
// Handle failures
|
// Handle failures
|
||||||
.fail(errorHandler);
|
.fail(errorHandler);
|
||||||
|
|
||||||
// Parse the command line arguments
|
// Load commands
|
||||||
var argv = yargs.parse();
|
yargs.command(require('./commands/init.js'))
|
||||||
|
.command(require('./commands/config.js'))
|
||||||
|
.command(require('./commands/record.js'))
|
||||||
|
.command(require('./commands/play.js'))
|
||||||
|
.command(require('./commands/render.js'))
|
||||||
|
.command(require('./commands/share.js'))
|
||||||
|
.command(require('./commands/generate.js'))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Print exceptions
|
* Print exceptions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user