improve cli
This commit is contained in:
+6
-2
@@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user