mirror of
				https://github.com/JuanCanham/HackMyResume.git
				synced 2025-10-30 20:57:26 +00:00 
			
		
		
		
	Scrub.
This commit is contained in:
		| @@ -56,7 +56,7 @@ Definition of the `main` function. | |||||||
|       .alias('create') |       .alias('create') | ||||||
|       .description('Create resume(s) in FRESH or JSON RESUME format.') |       .description('Create resume(s) in FRESH or JSON RESUME format.') | ||||||
|       .action(function( sources ) { |       .action(function( sources ) { | ||||||
|         execVerb.call( this, sources, [], this.opts(), logMsg); |         execute.call( this, sources, [], this.opts(), logMsg); | ||||||
|       }); |       }); | ||||||
|  |  | ||||||
|     // Create the VALIDATE command |     // Create the VALIDATE command | ||||||
| @@ -66,7 +66,7 @@ Definition of the `main` function. | |||||||
|       .option('-a --assert', 'Treat validation warnings as errors', false) |       .option('-a --assert', 'Treat validation warnings as errors', false) | ||||||
|       .description('Validate a resume in FRESH or JSON RESUME format.') |       .description('Validate a resume in FRESH or JSON RESUME format.') | ||||||
|       .action(function(sources) { |       .action(function(sources) { | ||||||
|         execVerb.call( this, sources, [], this.opts(), logMsg); |         execute.call( this, sources, [], this.opts(), logMsg); | ||||||
|       }); |       }); | ||||||
|  |  | ||||||
|     // Create the CONVERT command |     // Create the CONVERT command | ||||||
| @@ -76,7 +76,7 @@ Definition of the `main` function. | |||||||
|       .description('Convert a resume to/from FRESH or JSON RESUME format.') |       .description('Convert a resume to/from FRESH or JSON RESUME format.') | ||||||
|       .action(function() { |       .action(function() { | ||||||
|         var x = splitSrcDest.call( this ); |         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 |     // Create the ANALYZE command | ||||||
| @@ -85,7 +85,7 @@ Definition of the `main` function. | |||||||
|       .arguments('<sources...>') |       .arguments('<sources...>') | ||||||
|       .description('Analyze one or more resumes.') |       .description('Analyze one or more resumes.') | ||||||
|       .action(function( sources ) { |       .action(function( sources ) { | ||||||
|         execVerb.call( this, sources, [], this.opts(), logMsg); |         execute.call( this, sources, [], this.opts(), logMsg); | ||||||
|       }); |       }); | ||||||
|  |  | ||||||
|     // Create the BUILD command |     // Create the BUILD command | ||||||
| @@ -102,17 +102,9 @@ Definition of the `main` function. | |||||||
|       .description('Generate resume to multiple formats') |       .description('Generate resume to multiple formats') | ||||||
|       .action(function( sources, targets, options ) { |       .action(function( sources, targets, options ) { | ||||||
|         var x = splitSrcDest.call( this ); |         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 ); |     program.parse( args ); | ||||||
|  |  | ||||||
|     if (!program.args.length) { throw { fluenterror: 4 }; } |     if (!program.args.length) { throw { fluenterror: 4 }; } | ||||||
| @@ -165,7 +157,7 @@ Definition of the `main` function. | |||||||
|   /** |   /** | ||||||
|   Invoke a HackMyResume verb. |   Invoke a HackMyResume verb. | ||||||
|   */ |   */ | ||||||
|   function execVerb( src, dst, opts, log ) { |   function execute( src, dst, opts, log ) { | ||||||
|  |  | ||||||
|     loadOptions.call( this, opts ); |     loadOptions.call( this, opts ); | ||||||
|     require( '../core/error-handler' ).init( _opts.debug ); |     require( '../core/error-handler' ).init( _opts.debug ); | ||||||
|   | |||||||
| @@ -83,11 +83,6 @@ Implementation of the 'generate' verb for HackMyResume. | |||||||
|     }); |     }); | ||||||
|     (sheets.length > 1) && this.stat( HME.afterMerge, { r: rez } ); |     (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... |     // Expand output resumes... | ||||||
|     var targets = expand( dst, theme ); |     var targets = expand( dst, theme ); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user