mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-05 09:56:22 +00:00
Update --options file loading.
This commit is contained in:
parent
defe9b6e95
commit
934d8a6123
@ -98,7 +98,8 @@ Definition of the `main` function.
|
|||||||
.arguments('<sources...>')
|
.arguments('<sources...>')
|
||||||
.description('Peek at a resume field or section')
|
.description('Peek at a resume field or section')
|
||||||
.action(function( sources, sectionOrField ) {
|
.action(function( sources, sectionOrField ) {
|
||||||
execute.call( this, sources, [ sources.pop() ], this.opts(), logMsg);
|
var dst = (sources && sources.length > 1) ? [sources.pop()] : [];
|
||||||
|
execute.call( this, sources, dst, this.opts(), logMsg);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Create the BUILD command
|
// Create the BUILD command
|
||||||
@ -197,7 +198,9 @@ Definition of the `main` function.
|
|||||||
if( optStr[0] === '{')
|
if( optStr[0] === '{')
|
||||||
oJSON = eval('(' + optStr + ')'); // jshint ignore:line
|
oJSON = eval('(' + optStr + ')'); // jshint ignore:line
|
||||||
else {
|
else {
|
||||||
oJSON = safeLoadJSON( optStr );
|
var inf = safeLoadJSON( optStr );
|
||||||
|
if( !inf.ex )
|
||||||
|
oJSON = inf.json;
|
||||||
// TODO: Error handling
|
// TODO: Error handling
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user