Skip to content

Commit

Permalink
feat: add instance output to describe command
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisDuarte1 committed Oct 15, 2024
1 parent 094207b commit 1e55a43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:"));

Expand Down
1 change: 1 addition & 0 deletions packages/wrangler/src/workflows/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

0 comments on commit 1e55a43

Please sign in to comment.