mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-25 01:40:10 +00:00
Integrate printf().
This commit is contained in:
parent
7af50c51f6
commit
7765e85336
@ -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",
|
||||
|
@ -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 );
|
||||
|
||||
|
@ -210,6 +210,7 @@ Definition of the `main` function.
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Invoke a HackMyResume verb.
|
||||
*/
|
||||
|
@ -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 );
|
||||
},
|
||||
|
||||
|
||||
|
@ -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',
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user