@profoundlogic/coderflow-cli 0.12.131 → 0.12.132
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.
- package/lib/commands/status.js +12 -0
- package/package.json +1 -1
package/lib/commands/status.js
CHANGED
|
@@ -28,6 +28,18 @@ export async function getStatus(taskId) {
|
|
|
28
28
|
console.log(` Exit Code: ${data.exitCode}`);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
// Custom task detail fields (per-environment definitions; values on the task)
|
|
32
|
+
const customFields = data.customFields || {};
|
|
33
|
+
if (Object.keys(customFields).length > 0) {
|
|
34
|
+
const labels = new Map(
|
|
35
|
+
(data.environmentCustomFields || []).map(def => [def.key, def.label || def.key])
|
|
36
|
+
);
|
|
37
|
+
console.log(`\nDetails:`);
|
|
38
|
+
for (const [key, value] of Object.entries(customFields)) {
|
|
39
|
+
console.log(` ${labels.get(key) || key}: ${value}`);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
31
43
|
if (data.status === 'completed') {
|
|
32
44
|
console.log(`\n✓ Task completed successfully`);
|
|
33
45
|
console.log(`Use "coder results ${taskId}" to get full results`);
|