Skip to content

Commit 422f43a

Browse files
committed
Edit docs
1 parent f3a9cec commit 422f43a

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

temporalcli/commands.gen.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3049,11 +3049,11 @@ func NewTemporalWorkflowExecuteUpdateWithStartCommand(cctx *CommandContext, pare
30493049
s.Parent = parent
30503050
s.Command.DisableFlagsInUseLine = true
30513051
s.Command.Use = "execute-update-with-start [flags]"
3052-
s.Command.Short = "Send an Update and wait for it to complete"
3052+
s.Command.Short = "Send an Update-With-Start and wait for it to complete (Experimental)"
30533053
if hasHighlighting {
3054-
s.Command.Long = "Send a message to a Workflow Execution to invoke an Update handler, and wait for\nthe update to complete. If the Workflow Execution is not running, then a new workflow\nexecution is started and the update is sent.\n\n\x1b[1mtemporal workflow execute-update-with-start \\\n --update-name YourUpdate \\\n --update-input '{\"update-key\": \"update-value\"}' \\\n --workflow-id YourWorkflowId \\\n --type YourWorkflowType \\\n --task-queue YourTaskQueue \\\n --id-conflict-policy Fail \\\n --input '{\"wf-key\": \"wf-value\"}'\x1b[0m"
3054+
s.Command.Long = "Send a message to a Workflow Execution to invoke an Update handler, and wait for\nthe update to complete. If the Workflow Execution is not running, then a new workflow\nexecution is started and the update is sent.\n\nExperimental.\n\n\x1b[1mtemporal workflow execute-update-with-start \\\n --update-name YourUpdate \\\n --update-input '{\"update-key\": \"update-value\"}' \\\n --workflow-id YourWorkflowId \\\n --type YourWorkflowType \\\n --task-queue YourTaskQueue \\\n --id-conflict-policy Fail \\\n --input '{\"wf-key\": \"wf-value\"}'\x1b[0m"
30553055
} else {
3056-
s.Command.Long = "Send a message to a Workflow Execution to invoke an Update handler, and wait for\nthe update to complete. If the Workflow Execution is not running, then a new workflow\nexecution is started and the update is sent.\n\n```\ntemporal workflow execute-update-with-start \\\n --update-name YourUpdate \\\n --update-input '{\"update-key\": \"update-value\"}' \\\n --workflow-id YourWorkflowId \\\n --type YourWorkflowType \\\n --task-queue YourTaskQueue \\\n --id-conflict-policy Fail \\\n --input '{\"wf-key\": \"wf-value\"}'\n```"
3056+
s.Command.Long = "Send a message to a Workflow Execution to invoke an Update handler, and wait for\nthe update to complete. If the Workflow Execution is not running, then a new workflow\nexecution is started and the update is sent.\n\nExperimental.\n\n```\ntemporal workflow execute-update-with-start \\\n --update-name YourUpdate \\\n --update-input '{\"update-key\": \"update-value\"}' \\\n --workflow-id YourWorkflowId \\\n --type YourWorkflowType \\\n --task-queue YourTaskQueue \\\n --id-conflict-policy Fail \\\n --input '{\"wf-key\": \"wf-value\"}'\n```"
30573057
}
30583058
s.Command.Args = cobra.NoArgs
30593059
s.Command.Flags().StringVar(&s.UpdateName, "update-name", "", "Update name. Required. Aliased as \"--update-type\".")
@@ -3483,7 +3483,7 @@ func NewTemporalWorkflowStartUpdateWithStartCommand(cctx *CommandContext, parent
34833483
s.Parent = parent
34843484
s.Command.DisableFlagsInUseLine = true
34853485
s.Command.Use = "start-update-with-start [flags]"
3486-
s.Command.Short = "Send an Update and wait for it to be accepted or rejected (Experimental)"
3486+
s.Command.Short = "Send an Update-With-Start and wait for it to be accepted or rejected (Experimental)"
34873487
if hasHighlighting {
34883488
s.Command.Long = "Send a message to a Workflow Execution to invoke an Update handler, and wait for\nthe update to be accepted or rejected. If the Workflow Execution is not running, \nthen a new workflow execution is started and the update is sent.\n\nExperimental.\n\n\x1b[1mtemporal workflow start-update-with-start \\\n --update-name YourUpdate \\\n --update-input '{\"update-key\": \"update-value\"}' \\\n --update-wait-for-stage accepted \\\n --workflow-id YourWorkflowId \\\n --type YourWorkflowType \\\n --task-queue YourTaskQueue \\\n --id-conflict-policy Fail \\\n --input '{\"wf-key\": \"wf-value\"}'\x1b[0m"
34893489
} else {
@@ -3598,7 +3598,7 @@ func NewTemporalWorkflowUpdateCommand(cctx *CommandContext, parent *TemporalWork
35983598
var s TemporalWorkflowUpdateCommand
35993599
s.Parent = parent
36003600
s.Command.Use = "update"
3601-
s.Command.Short = "Updates"
3601+
s.Command.Short = "Send and interact with Updates"
36023602
s.Command.Long = "An Update is a synchronous call to a Workflow Execution that can change its\nstate, control its flow, and return a result."
36033603
s.Command.Args = cobra.NoArgs
36043604
s.Command.AddCommand(&NewTemporalWorkflowUpdateDescribeCommand(cctx, &s).Command)

temporalcli/commandsgen/commands.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3601,7 +3601,7 @@ commands:
36013601
- workflow-reference
36023602

36033603
- name: temporal workflow update
3604-
summary: Updates
3604+
summary: Send and interact with Updates
36053605
description: |
36063606
An Update is a synchronous call to a Workflow Execution that can change its
36073607
state, control its flow, and return a result.
@@ -3680,7 +3680,7 @@ commands:
36803680
required: true
36813681

36823682
- name: temporal workflow start-update-with-start
3683-
summary: Send an Update and wait for it to be accepted or rejected (Experimental)
3683+
summary: Send an Update-With-Start and wait for it to be accepted or rejected (Experimental)
36843684
description: |
36853685
Send a message to a Workflow Execution to invoke an Update handler, and wait for
36863686
the update to be accepted or rejected. If the Workflow Execution is not running,
@@ -3763,12 +3763,14 @@ commands:
37633763
Assume update inputs are base64-encoded and attempt to decode them.
37643764
37653765
- name: temporal workflow execute-update-with-start
3766-
summary: Send an Update and wait for it to complete
3766+
summary: Send an Update-With-Start and wait for it to complete (Experimental)
37673767
description: |
37683768
Send a message to a Workflow Execution to invoke an Update handler, and wait for
37693769
the update to complete. If the Workflow Execution is not running, then a new workflow
37703770
execution is started and the update is sent.
37713771
3772+
Experimental.
3773+
37723774
```
37733775
temporal workflow execute-update-with-start \
37743776
--update-name YourUpdate \

0 commit comments

Comments
 (0)