1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-12-27 23:37:22 +00:00
This commit is contained in:
hacksalot 2016-01-09 16:56:30 -05:00
parent 540c745069
commit 540ad48d61
2 changed files with 6 additions and 19 deletions

View File

@ -56,7 +56,7 @@ Definition of the `main` function.
.alias('create')
.description('Create resume(s) in FRESH or JSON RESUME format.')
.action(function( sources ) {
execVerb.call( this, sources, [], this.opts(), logMsg);
execute.call( this, sources, [], this.opts(), logMsg);
});
// Create the VALIDATE command
@ -66,7 +66,7 @@ Definition of the `main` function.
.option('-a --assert', 'Treat validation warnings as errors', false)
.description('Validate a resume in FRESH or JSON RESUME format.')
.action(function(sources) {
execVerb.call( this, sources, [], this.opts(), logMsg);
execute.call( this, sources, [], this.opts(), logMsg);
});
// Create the CONVERT command
@ -76,7 +76,7 @@ Definition of the `main` function.
.description('Convert a resume to/from FRESH or JSON RESUME format.')
.action(function() {
var x = splitSrcDest.call( this );
execVerb.call( this, x.src, x.dst, this.opts(), logMsg);
execute.call( this, x.src, x.dst, this.opts(), logMsg);
});
// Create the ANALYZE command
@ -85,7 +85,7 @@ Definition of the `main` function.
.arguments('<sources...>')
.description('Analyze one or more resumes.')
.action(function( sources ) {
execVerb.call( this, sources, [], this.opts(), logMsg);
execute.call( this, sources, [], this.opts(), logMsg);
});
// Create the BUILD command
@ -102,17 +102,9 @@ Definition of the `main` function.
.description('Generate resume to multiple formats')
.action(function( sources, targets, options ) {
var x = splitSrcDest.call( this );
execVerb.call( this, x.src, x.dst, this.opts(), logMsg);
execute.call( this, x.src, x.dst, this.opts(), logMsg);
});
// program.on('--help', function(){
// console.log(' Examples:');
// console.log('');
// console.log(' $ custom-help --help');
// console.log(' $ custom-help -h');
// console.log('');
// });
program.parse( args );
if (!program.args.length) { throw { fluenterror: 4 }; }
@ -165,7 +157,7 @@ Definition of the `main` function.
/**
Invoke a HackMyResume verb.
*/
function execVerb( src, dst, opts, log ) {
function execute( src, dst, opts, log ) {
loadOptions.call( this, opts );
require( '../core/error-handler' ).init( _opts.debug );

View File

@ -83,11 +83,6 @@ Implementation of the 'generate' verb for HackMyResume.
});
(sheets.length > 1) && this.stat( HME.afterMerge, { r: rez } );
// Output theme messages
var numFormats = Object.keys(theme.formats).length;
var themeName = theme.name.toUpperCase();
// Expand output resumes...
var targets = expand( dst, theme );