From 0c7325322abd9ec85fd45744ac06ebc30a9ec46d Mon Sep 17 00:00:00 2001 From: devlinjd Date: Tue, 6 Oct 2015 16:09:40 -0400 Subject: [PATCH] Fix merge logic. Allow multiple resumes to be merged, extend()-style, and output a notification for the same. --- src/fluentcmd.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/fluentcmd.js b/src/fluentcmd.js index 75238ed..88e28da 100644 --- a/src/fluentcmd.js +++ b/src/fluentcmd.js @@ -45,9 +45,14 @@ module.exports = function () { }); // Merge input resumes + var msg = ''; + sheets.length > 1 && (msg += ('Merging ' + sheets[ sheets.length - 1].meta.fileName)); rez = sheets.reduce( function( acc, elem ) { - return extend( true, acc.rep, elem.rep ); + msg += (' onto ' + acc.meta.fileName); + return extend( true, acc, elem ); }); + sheets.length > 1 && _log( msg ); + // Run the transformation! var finished = targets.map( single );