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

Implemented private fields that can be included or excluded with cli switch

This commit is contained in:
Daniele Rapagnani
2016-02-14 19:15:47 +01:00
parent 3cf850ea0e
commit fed59b704e
14 changed files with 57 additions and 22 deletions

View File

@ -56,7 +56,10 @@ Implementation of the 'analyze' verb for HackMyResume.
var r;
r = ResumeFactory.loadOne(src, {
format: 'FRESH',
objectify: true
objectify: true,
inner: {
"private": opts["private"]
}
}, this);
if (opts.assert && this.hasError()) {
return {};

8
dist/verbs/build.js vendored
View File

@ -109,7 +109,8 @@ Implementation of the 'build' verb for HackMyResume.
objectify: false,
quit: true,
inner: {
sort: _opts.sort
sort: _opts.sort,
"private": _opts["private"]
}
}, this);
problemSheets = _.filter(sheetObjects, function(so) {
@ -198,7 +199,9 @@ Implementation of the 'build' verb for HackMyResume.
r: rez,
theme: theme
});
_rezObj = new RTYPES[toFormat]().parseJSON(rez);
_rezObj = new RTYPES[toFormat]().parseJSON(rez, {
"private": _opts["private"]
});
targets = _expand(dst, theme);
_.each(targets, function(t) {
var ref;
@ -233,6 +236,7 @@ Implementation of the 'build' verb for HackMyResume.
var that;
_opts.theme = (opts.theme && opts.theme.toLowerCase().trim()) || 'modern';
_opts.prettify = opts.prettify === true;
_opts["private"] = opts["private"] === true;
_opts.css = opts.css;
_opts.pdf = opts.pdf;
_opts.wrap = opts.wrap || 60;

View File

@ -92,7 +92,10 @@ Implementation of the 'convert' verb for HackMyResume.
var rinfo, s, srcFmt, targetFormat;
rinfo = ResumeFactory.loadOne(src, {
format: null,
objectify: true
objectify: true,
inner: {
"private": true
}
});
if (rinfo.fluenterror) {
return rinfo;