improve cli

This commit is contained in:
marlonerler
2024-07-05 12:48:42 +02:00
parent aff1aac9ec
commit 83f5c19402
28 changed files with 1617 additions and 15 deletions
+6
View File
@@ -1,3 +1,5 @@
import Colors from "colors";
export function guardStringNotEmpty(
data: any,
cb: (data: string) => void
@@ -5,3 +7,7 @@ export function guardStringNotEmpty(
if (typeof data != "string" || data == "") return;
cb(data);
}
export function writeStat(label: string, value: number) {
console.log(Colors.bold.blue(value.toString().padStart(9, " ")), label);
}