From b24c129e384255224b63eed2575e5eb13562dad6 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Fri, 29 Nov 2019 23:34:23 +0100 Subject: [PATCH] Improve formating for instance output Use colours instead of dim in the coloured output from clusterctl as not all terminals support dim. --- clusterctl.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clusterctl.js b/clusterctl.js index 75ddcd8c..1aa0a952 100644 --- a/clusterctl.js +++ b/clusterctl.js @@ -19,9 +19,9 @@ const errors = require("lib/errors"); function formatOutputColored(output) { let time = ""; if (output.format === 'seconds') { - time = chalk.dim(output.time.padStart(8)) + ' '; + time = chalk.yellow(output.time.padStart(8)) + ' '; } else if (output.format === 'date') { - time = chalk.dim(output.time) + ' '; + time = chalk.yellow(output.time) + ' '; } let info = ""; @@ -35,7 +35,7 @@ function formatOutputColored(output) { level = chalk.bold.redBright(level); } - info = level + ' ' + chalk.dim(output.file) + ': '; + info = level + ' ' + chalk.gray(output.file) + ': '; } else if (output.type === 'action') { info = '[' + chalk.yellow(output.action) + '] ';