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

Move commands to Verb hierarchy

Move flat command functions (BUILD, ANALYZE, etc.) to a shallow Verb
hierarchy. Allow command verbs to inherit common functionality and prep
for better debugging/logging as well as test mocks.
This commit is contained in:
hacksalot
2016-01-09 06:44:22 -05:00
parent 47e8605f50
commit 88c71f6e9c
7 changed files with 90 additions and 14 deletions

View File

@ -12,14 +12,24 @@ Implementation of the 'convert' verb for HackMyResume.
var ResumeFactory = require('../core/resume-factory')
, chalk = require('chalk')
, Verb = require('../core/verb')
, HACKMYSTATUS = require('../core/status-codes');
var ConvertVerb = module.exports = Verb.extend({
invoke: function() {
convert.apply( this, arguments );
}
});
/**
Convert between FRESH and JRS formats.
*/
module.exports = function convert( srcs, dst, opts, logger ) {
function convert( srcs, dst, opts, logger ) {
// Housekeeping
var _log = logger || console.log;
@ -62,7 +72,7 @@ Implementation of the 'convert' verb for HackMyResume.
});
};
}