Skip to content

Commit 2f68de7

Browse files
committed
Formatting and merge conflicts
1 parent 932e586 commit 2f68de7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

temporalcli/commands.activity.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@ func (c *TemporalActivityResetCommand) run(cctx *CommandContext, args []string)
376376
request.Activity = &workflowservice.ResetActivityRequest_Type{Type: c.ActivityType}
377377
} else if c.ActivityId != "" {
378378
request.Activity = &workflowservice.ResetActivityRequest_Id{Id: c.ActivityId}
379+
} else {
380+
return fmt.Errorf("either Activity Type or Activity Id must be provided")
379381
}
380382

381383
resp, err := cl.WorkflowService().ResetActivity(cctx, request)

temporalcli/commandsgen/commands.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,7 @@ commands:
337337
summary: Update Activity options
338338
description: |
339339
Update the options of a running Activity that were passed into it from
340-
a Workflow. Updates are incremental, only changing the specified
341-
options.
340+
a Workflow. Updates are incremental, only changing the specified options.
342341
343342
For example:
344343
@@ -370,7 +369,6 @@ commands:
370369
...
371370
```
372371
options:
373-
374372
- name: activity-id
375373
short: a
376374
type: string
@@ -541,8 +539,7 @@ commands:
541539
- name: match-all
542540
type: bool
543541
description: |
544-
Every paused activity should be unpaused. This flag is ignored if
545-
activity-type is provided.
542+
Every paused activity should be unpaused. This flag is ignored if activity-type is provided.
546543
- name: jitter
547544
type: duration
548545
description: |

0 commit comments

Comments
 (0)