Skip to content

Commit f60b8e4

Browse files
committed
Merge pull request #6 from ember-cli-deploy/log-tweaks
ensure that we start logging from the beginning of the line
2 parents efee3cb + a4e21d8 commit f60b8e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ var DeployPluginBase = CoreObject.extend({
5656
if (!opts.verbose || (opts.verbose && ui.verbose)) {
5757
if (ui.verbose) {
5858
ui.write(blue('| '));
59+
} else if (ui.actualOutputStream && ui.actualOutputStream.cursorTo) {
60+
// on a real terminal we want to reset the cursor position
61+
// to avoid overlap with other outputs
62+
ui.actualOutputStream.cursorTo(0);
5963
}
64+
6065
var chalkColor = chalk[opts.color];
6166
ui.writeLine(chalkColor('- ' + message));
6267
}

0 commit comments

Comments
 (0)