diff --git a/internal/temporalcli/commands.workflow_pause.go b/internal/temporalcli/commands.workflow_pause.go index 6bd6c7bb..6eb6de8b 100644 --- a/internal/temporalcli/commands.workflow_pause.go +++ b/internal/temporalcli/commands.workflow_pause.go @@ -13,10 +13,10 @@ func (c *TemporalWorkflowPauseCommand) run(cctx *CommandContext, args []string) _, err = cl.WorkflowService().PauseWorkflowExecution(cctx, &workflowservice.PauseWorkflowExecutionRequest{ Namespace: c.Parent.Namespace, - Reason: c.Reason, WorkflowId: c.WorkflowId, RunId: c.RunId, Identity: c.Parent.Identity, + Reason: c.Reason, }) if err != nil { return err diff --git a/internal/temporalcli/commands.workflow_view.go b/internal/temporalcli/commands.workflow_view.go index adc0178c..08fb5c76 100644 --- a/internal/temporalcli/commands.workflow_view.go +++ b/internal/temporalcli/commands.workflow_view.go @@ -161,6 +161,18 @@ func (c *TemporalWorkflowDescribeCommand) run(cctx *CommandContext, args []strin OriginalStartTime: timestampToTime(extendedInfo.OriginalStartTime), }, printer.StructuredOptions{}) } + if extendedInfo != nil && extendedInfo.PauseInfo != nil { + cctx.Printer.Println(color.MagentaString("Pause Info:")) + _ = cctx.Printer.PrintStructured(struct { + Identity string `cli:",cardOmitEmpty"` + Reason string `cli:",cardOmitEmpty"` + PausedTime time.Time `cli:",cardOmitEmpty"` + }{ + Identity: extendedInfo.PauseInfo.GetIdentity(), + Reason: extendedInfo.PauseInfo.GetReason(), + PausedTime: timestampToTime(extendedInfo.PauseInfo.GetPausedTime()), + }, printer.StructuredOptions{}) + } staticSummary := resp.GetExecutionConfig().GetUserMetadata().GetSummary() staticDetails := resp.GetExecutionConfig().GetUserMetadata().GetDetails()