mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-07-11 04:31: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:
@ -165,7 +165,9 @@
|
||||
function execVerb( src, dst, opts, log ) {
|
||||
loadOptions.call( this, opts );
|
||||
require('./core/error-handler').init( _opts.debug );
|
||||
HMR.verbs[ this.name() ].call( null, src, dst, _opts, log );
|
||||
|
||||
var v = new HMR.verbs[ this.name() ]();
|
||||
v.invoke.call( null, src, dst, _opts, log );
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user