1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-10 15:57:07 +01:00

Handle global options.

Fix broken --silent flag and set up -o/-opts.
This commit is contained in:
hacksalot
2016-01-04 01:49:35 -05:00
parent d5e2a45034
commit c8d4a3deb3
2 changed files with 21 additions and 11 deletions

View File

@ -88,7 +88,8 @@ Implementation of the 'generate' verb for HackMyResume.
var numFormats = Object.keys(theme.formats).length;
var themeName = theme.name.toUpperCase();
_log( chalk.yellow('Applying ') + chalk.yellow.bold(themeName) +
chalk.yellow(' theme (' + numFormats + ' format' + ( numFormats === 1 ? ')' : 's)') ));
chalk.yellow(' theme (' + numFormats + ' format' +
( numFormats === 1 ? ')' : 's)') ));
// Expand output resumes...
var targets = expand( dst, theme );
@ -135,7 +136,8 @@ Implementation of the 'generate' verb for HackMyResume.
}
_log( chalk.green('Generating ') +
chalk.green.bold(pad(targInfo.fmt.outFormat.toUpperCase(),4,null,pad.RIGHT)) +
chalk.green.bold(
pad(targInfo.fmt.outFormat.toUpperCase(),4,null,pad.RIGHT)) +
chalk.green(' resume') + suffix + chalk.green(': ') +
chalk.green.bold( PATH.relative(process.cwd(), f )) );