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

Fix CREATE verb output.

This commit is contained in:
hacksalot 2016-01-09 15:58:39 -05:00
parent 3aabb5028d
commit bece335a64
2 changed files with 6 additions and 5 deletions

View File

@ -45,7 +45,7 @@ Output routines for HackMyResume.
case HME.beforeCreate:
this.log( chalk.green('Creating new ') +
chalk.green.bold(evt.cmd) +
chalk.green.bold(evt.fmt) +
chalk.green(' resume: ') + chalk.green.bold(evt.file));
break;
@ -56,8 +56,8 @@ Output routines for HackMyResume.
case HME.beforeMerge:
var msg = '';
evt.f.reverse().forEach( function( a, idx ) {
msg += ((idx === 0) ? chalk.cyan('Merging ') : chalk.cyan(' onto '))
+ chalk.cyan.bold(a.i().file);
msg += ((idx === 0) ? chalk.cyan('Merging ') :
chalk.cyan(' onto ')) + chalk.cyan.bold(a.i().file);
});
this.log( msg );
break;
@ -128,6 +128,7 @@ Output routines for HackMyResume.
break;
case HME.afterAnalyze:
// TODO: templatize all of this
var info = evt.info;
var padding = 20;
this.log(chalk.cyan.bold('\nSECTIONS') + chalk.cyan(' (') +

View File

@ -44,11 +44,11 @@ Implementation of the 'create' verb for HackMyResume.
_.each( src, function( t ) {
var safeFmt = opts.format.toUpperCase();
this.fireStat( HME.bc, { fmt: safeFmt, file: t } );
this.stat( HME.beforeCreate, { fmt: safeFmt, file: t } );
MKDIRP.sync( PATH.dirname( t ) ); // Ensure dest folder exists;
var RezClass = require('../core/' + safeFmt.toLowerCase() + '-resume' );
RezClass.default().save(t);
this.fireStat( HME.ac, { fmt: safeFmt, file: t } );
this.stat( HME.afterCreate, { fmt: safeFmt, file: t } );
}, this);
this.stat( HME.end );