From 1e55a43a9e32dc0a45327d7799ba3110d58d1262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Duarte?= Date: Tue, 15 Oct 2024 10:57:35 +0100 Subject: [PATCH] feat: add instance output to describe command --- .../wrangler/src/workflows/commands/instances/describe.ts | 4 ++++ packages/wrangler/src/workflows/types.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/packages/wrangler/src/workflows/commands/instances/describe.ts b/packages/wrangler/src/workflows/commands/instances/describe.ts index f227e941d9fe..1f5d9c129e05 100644 --- a/packages/wrangler/src/workflows/commands/instances/describe.ts +++ b/packages/wrangler/src/workflows/commands/instances/describe.ts @@ -135,6 +135,10 @@ export const instancesDescribeHandler = async (args: HandlerOptions) => { ); } + if (instance.output !== undefined && instance.output !== null) { + formattedInstance.Output = instance.output; + } + logRaw(formatLabelledValues(formattedInstance)); logRaw(white("Steps:")); diff --git a/packages/wrangler/src/workflows/types.ts b/packages/wrangler/src/workflows/types.ts index 7c3cb5b3bdf9..b4665206db0a 100644 --- a/packages/wrangler/src/workflows/types.ts +++ b/packages/wrangler/src/workflows/types.ts @@ -104,6 +104,7 @@ export type InstanceStatusAndLogs = { steps: (InstanceStepLog | InstanceSleepLog | InstanceTerminateLog)[]; success: boolean | null; error: { name: string; message: string } | null; + output: string | undefined | null; }; export type InstanceChangeStatusType = "pause" | "resume" | "terminate";