From 540ad48d61cfe728c49fb8dc306de1ff1e4a1ced Mon Sep 17 00:00:00 2001 From: hacksalot Date: Sat, 9 Jan 2016 16:56:30 -0500 Subject: [PATCH] Scrub. --- src/cli/main.js | 20 ++++++-------------- src/verbs/build.js | 5 ----- 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/src/cli/main.js b/src/cli/main.js index b19c10c..db10ed6 100644 --- a/src/cli/main.js +++ b/src/cli/main.js @@ -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('') .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 ); diff --git a/src/verbs/build.js b/src/verbs/build.js index 77f8910..c220316 100644 --- a/src/verbs/build.js +++ b/src/verbs/build.js @@ -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 );