improve cli

This commit is contained in:
marlonerler
2024-07-05 13:17:19 +02:00
parent 83f5c19402
commit fbb36c6920
9 changed files with 637 additions and 8 deletions
+6 -2
View File
@@ -8,6 +8,10 @@ export function guardStringNotEmpty(
cb(data);
}
export function writeStat(label: string, value: number) {
console.log(Colors.bold.blue(value.toString().padStart(9, " ")), label);
export function writeInfo(label: string, value: string) {
console.log(label.padEnd(20, " "), Colors.bold.green(value));
}
export function writeStat(label: string, value: number) {
console.log(label.padEnd(20, " "), Colors.bold.blue(value.toString()));
}