mirror of
https://github.com/remy/inliner.git
synced 2024-08-16 20:00:35 +03:00
fix: when in debug, output verbose line-by-line
This commit is contained in:
parent
e61f7bd783
commit
ba67ef1083
17
cli/index.js
17
cli/index.js
@ -98,11 +98,16 @@ function main() {
|
||||
'\nLast job: ' + progress +
|
||||
styles.gray.close;
|
||||
|
||||
process.stderr.write(
|
||||
ansi.cursorRestorePosition +
|
||||
ansi.cursorLeft +
|
||||
ansi.eraseLines(2) +
|
||||
str.trim() + '\n');
|
||||
if (argv.debug) {
|
||||
process.stderr.write(
|
||||
str.trim() + '\n');
|
||||
} else {
|
||||
process.stderr.write(
|
||||
ansi.cursorRestorePosition +
|
||||
ansi.cursorLeft +
|
||||
ansi.eraseLines(2) +
|
||||
str.trim() + '\n');
|
||||
}
|
||||
};
|
||||
|
||||
inliner.on('progress', function progressEvent(event) {
|
||||
@ -138,5 +143,7 @@ function main() {
|
||||
console.warn('warning: ' + event);
|
||||
});
|
||||
}
|
||||
}).catch(function (error) {
|
||||
console.error(error.stack);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user