Improve formating for instance output

Use colours instead of dim in the coloured output from clusterctl as not
all terminals support dim.
This commit is contained in:
Hornwitser committed 2019-11-30 00:08:10 +01:00
1 parent f5d2b058d9
commit b24c129e38
1 file changed
+3 -3
+3 -3
View File
@@ -19,9 +19,9 @@ const errors = require("lib/errors");
function formatOutputColored(output) { function formatOutputColored(output) {
let time = ""; let time = "";
if (output.format === 'seconds') { if (output.format === 'seconds') {
time = chalk.dim(output.time.padStart(8)) + ' '; time = chalk.yellow(output.time.padStart(8)) + ' ';
} else if (output.format === 'date') { } else if (output.format === 'date') {
time = chalk.dim(output.time) + ' '; time = chalk.yellow(output.time) + ' ';
} }
let info = ""; let info = "";
@@ -35,7 +35,7 @@ function formatOutputColored(output) {
level = chalk.bold.redBright(level); level = chalk.bold.redBright(level);
} }
info = level + ' ' + chalk.dim(output.file) + ': '; info = level + ' ' + chalk.gray(output.file) + ': ';
} else if (output.type === 'action') { } else if (output.type === 'action') {
info = '[' + chalk.yellow(output.action) + '] '; info = '[' + chalk.yellow(output.action) + '] ';