viza 1.9.21 ā 1.9.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,25 +9,9 @@ export async function showRuntimeUsage(result) {
|
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
11
|
const { log, result: data } = env.data;
|
|
12
|
-
//
|
|
13
|
-
// 1. Render
|
|
14
|
-
//
|
|
15
|
-
if (Array.isArray(log) && log.length > 0) {
|
|
16
|
-
console.log("\nš§© Execution Steps");
|
|
17
|
-
console.log("ā".repeat(80));
|
|
18
|
-
for (const step of log) {
|
|
19
|
-
const statusIcon = step.status === "ok" ? "ā
" : "ā";
|
|
20
|
-
const duration = step.durationMs ? `${step.durationMs}ms` : "-";
|
|
21
|
-
console.log(`${statusIcon} [${step.step}] ${step.title} ${chalk.gray(`(${duration})`)}`);
|
|
22
|
-
if (step.message) {
|
|
23
|
-
console.log(chalk.gray(` ā³ ${step.message}`));
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
console.log("ā".repeat(80));
|
|
27
|
-
}
|
|
28
|
-
// -------------------------------
|
|
29
|
-
// 2. Render usage by month
|
|
30
|
-
// -------------------------------
|
|
12
|
+
// āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
|
|
13
|
+
// 1. Render usage by month
|
|
14
|
+
// āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
|
|
31
15
|
if (data?.usage) {
|
|
32
16
|
console.log("\nš Usage by Month");
|
|
33
17
|
console.log("ā".repeat(60));
|
|
@@ -41,9 +25,9 @@ export async function showRuntimeUsage(result) {
|
|
|
41
25
|
}
|
|
42
26
|
console.log("ā".repeat(60));
|
|
43
27
|
}
|
|
44
|
-
//
|
|
45
|
-
//
|
|
46
|
-
//
|
|
28
|
+
// āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
|
|
29
|
+
// 2. Render usage by org + month
|
|
30
|
+
// āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
|
|
47
31
|
if (data?.byOrg) {
|
|
48
32
|
console.log("\nš¢ Usage by Organization");
|
|
49
33
|
console.log("ā".repeat(60));
|
|
@@ -55,9 +39,9 @@ export async function showRuntimeUsage(result) {
|
|
|
55
39
|
}
|
|
56
40
|
console.log("ā".repeat(60));
|
|
57
41
|
}
|
|
58
|
-
//
|
|
42
|
+
// āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
|
|
59
43
|
// 4. Raw hint (optional)
|
|
60
|
-
//
|
|
44
|
+
// āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
|
|
61
45
|
if (data?.raw?.usageItems) {
|
|
62
46
|
console.log();
|
|
63
47
|
console.log(chalk.gray("š” Raw usage items available (use debug mode if needed)"));
|