From 6e4263e58c53db1a226c699baefec97b4d138859 Mon Sep 17 00:00:00 2001 From: devlinjd Date: Sat, 10 Oct 2015 15:39:13 -0400 Subject: [PATCH] Change default theme to "modern". --- README.md | 12 ++++++------ src/fluentcmd.js | 6 +++--- src/index.js | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 1bf1b24..cabcfb9 100644 --- a/README.md +++ b/README.md @@ -38,13 +38,13 @@ Where `[inputs]` is one or more .json resume files, `[outputs]` is one or more d ```bash # Generate all resume formats (HTML, PDF, DOC, TXT) -fluentcmd resume.json resume.all -t informatic +fluentcmd resume.json resume.all -t modern # Generate a specific resume format -fluentcmd resume.json resume.html -t informatic -fluentcmd resume.json resume.txt -t informatic -fluentcmd resume.json resume.pdf -t informatic -fluentcmd resume.json resume.doc -t informatic +fluentcmd resume.json resume.html -t modern +fluentcmd resume.json resume.txt -t modern +fluentcmd resume.json resume.pdf -t modern +fluentcmd resume.json resume.doc -t modern ``` You should see something to the effect of: @@ -94,7 +94,7 @@ fluentcmd me.json out1.doc out1.pdf foo.txt You can also omit the output file(s) and/or theme completely: ```bash -# Equivalent to "fluentcmd resume.json resume.all -t informatic" +# Equivalent to "fluentcmd resume.json resume.all -t modern" fluentcmd resume.json ``` diff --git a/src/fluentcmd.js b/src/fluentcmd.js index ce281cc..e1d8581 100644 --- a/src/fluentcmd.js +++ b/src/fluentcmd.js @@ -19,14 +19,14 @@ module.exports = function () { generate 0..N resumes in the desired formats. @param src Path to the source JSON resume file: "rez/resume.json". @param dst An array of paths to the target resume file(s). - @param theme Friendly name of the resume theme. Defaults to "informatic". + @param theme Friendly name of the resume theme. Defaults to "modern". @param logger Optional logging override. */ function gen( src, dst, theme, logger, errHandler ) { _log = logger || console.log; _err = errHandler || error; - _opts.theme = (theme && theme.toLowerCase().trim()) || 'informatic'; + _opts.theme = (theme && theme.toLowerCase().trim()) || 'modern'; // Load input resumes... if(!src || !src.length) { throw { fluenterror: 3 }; } @@ -105,7 +105,7 @@ module.exports = function () { Default options. */ var _opts = { - theme: 'informatic', + theme: 'modern', } /** diff --git a/src/index.js b/src/index.js index fa9eea2..f8d97d4 100644 --- a/src/index.js +++ b/src/index.js @@ -15,7 +15,7 @@ try { var args = ARGS( process.argv.slice(2) ); var src = args._.filter( function( a ) { return a.match(/\.json$/); }); var dst = args._.filter( function( a ) { return !a.match(/\.json$/); }); - FCMD.generate( src, dst, args.t || 'informatic' ); + FCMD.generate( src, dst, args.t || 'modern' ); process.platform !== 'win32' && console.log('\n'); } catch( ex ) {