1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-06-30 23:40:05 +01:00

Integrate printf().

This commit is contained in:
hacksalot 2016-01-14 09:46:29 -05:00
parent 7af50c51f6
commit 7765e85336
5 changed files with 8 additions and 4 deletions

View File

@ -66,6 +66,7 @@
"moment": "^2.10.6",
"parse-filepath": "^0.6.3",
"path-exists": "^2.1.0",
"printf": "^0.2.3",
"recursive-readdir-sync": "^1.0.6",
"simple-html-tokenizer": "^0.2.0",
"slash": "^1.0.0",

View File

@ -51,7 +51,7 @@ Error-handling routines for HackMyResume.
}
else {
o( ex );
var stackTrace = ex.stack || (ex.inner && ex.inner.stack)
var stackTrace = ex.stack || (ex.inner && ex.inner.stack);
if( stackTrace && this.debug )
o( ex.stack || ex.inner.stack );

View File

@ -210,6 +210,7 @@ Definition of the `main` function.
}
/**
Invoke a HackMyResume verb.
*/

View File

@ -39,7 +39,9 @@ Output routines for HackMyResume.
log: function( msg ) {
msg = msg || '';
this.opts.silent || console.log.apply( console.log, arguments );
var printf = require('printf');
var finished = printf.apply( printf, arguments );
this.opts.silent || console.log( finished );
},

View File

@ -16,7 +16,7 @@ describe('Testing Ouput interface', function () {
function MyConsoleLog( msg ) {
gather += msg;
gather += Array.prototype.slice.call(arguments).join(' ');
ConsoleLogOrg.apply(this, arguments);
}
@ -101,7 +101,7 @@ describe('Testing Ouput interface', function () {
'test/sandbox/temp/janeq-1.all',
'-o',
"{ theme: 'compact', debug: true, pdf: 'wkhtmltopdf' }"],
[ 'Applying COMPACT theme', '(with wkhtmltopdf)'] );
[ 'Applying COMPACT theme (', '(with wkhtmltopdf)'] );
run('HMR should accept a JSON settings file via --options',
[