1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-12-23 05:37:23 +00:00

Introduce --color and --no-color options.

These are handled by Chalk, but need to be registered with Commander.js
in order for Chalk to see them.
This commit is contained in:
hacksalot 2016-01-05 09:42:39 -05:00
parent 0f580efb2b
commit da5db6477b

View File

@ -47,7 +47,9 @@ function main() {
.version(PKG.version)
.description(chalk.yellow.bold('*** HackMyResume ***'))
.option('-o --opts <optionsFile>', 'Path to a .hackmyrc options file')
.option('-s --silent', 'Run in silent mode');
.option('-s --silent', 'Run in silent mode')
.option('--no-color', 'Disable colors')
.option('--color', 'Enable colors');
//.usage('COMMAND <sources> [TO <targets>]');
// Create the NEW command