From fed59b704e502859d3b74fd7e300fa57f9c4af90 Mon Sep 17 00:00:00 2001 From: Daniele Rapagnani Date: Sun, 14 Feb 2016 19:15:47 +0100 Subject: [PATCH] Implemented private fields that can be included or excluded with cli switch --- dist/cli/main.js | 4 ++-- dist/cli/use.txt | 1 + dist/core/fresh-resume.js | 8 ++++++-- dist/core/jrs-resume.js | 8 ++++++-- dist/verbs/analyze.js | 5 ++++- dist/verbs/build.js | 8 ++++++-- dist/verbs/convert.js | 5 ++++- src/cli/main.coffee | 2 ++ src/cli/use.txt | 1 + src/core/fresh-resume.coffee | 11 ++++++++--- src/core/jrs-resume.coffee | 14 +++++++++----- src/verbs/analyze.coffee | 2 +- src/verbs/build.coffee | 8 ++++++-- src/verbs/convert.coffee | 2 +- 14 files changed, 57 insertions(+), 22 deletions(-) diff --git a/dist/cli/main.js b/dist/cli/main.js index 0c7ea6f..27e4ba7 100644 --- a/dist/cli/main.js +++ b/dist/cli/main.js @@ -76,7 +76,7 @@ Definition of the `main` function. x = splitSrcDest.call(this); execute.call(this, x.src, x.dst, this.opts(), logMsg); }); - program.command('analyze')["arguments"]('').description('Analyze one or more resumes.').action(function(sources) { + program.command('analyze')["arguments"]('').option('--private', 'Include resume fields marked as private', false).description('Analyze one or more resumes.').action(function(sources) { execute.call(this, sources, [], this.opts(), logMsg); }); program.command('peek')["arguments"]('').description('Peek at a resume field or section').action(function(sources, sectionOrField) { @@ -84,7 +84,7 @@ Definition of the `main` function. dst = sources && sources.length > 1 ? [sources.pop()] : []; execute.call(this, sources, dst, this.opts(), logMsg); }); - program.command('build').alias('generate').option('-t --theme ', 'Theme name or path').option('-n --no-prettify', 'Disable HTML prettification', true).option('-c --css