mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 00:13:12 +09:00
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:
1 parent
f5d2b058d9
commit
b24c129e38
1 file changed
+3
-3
+3
-3
@@ -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) + '] ';
|
||||||
|
|||||||
Reference in new issue
Block a user