Skip to content

Commit 64f6612

Browse files
authored
Correct batch jobs --query filter description (#236)
1 parent 6035957 commit 64f6612

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

common/defs-flags.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ const (
5555
FlagPrintRawUsage = "Print properties without changing their format."
5656
QueryFlagTypeUsage = "The type of Query to run."
5757
FlagWorkflowSignalUsage = "Signal Workflow Execution by Id."
58-
FlagQueryDefinition = "Signal Workflow Executions by List Filter."
5958
FlagSignalName = "Signal Name"
6059
FlagInputSignal = "Input for the Signal. Formatted in JSON."
6160
FlagInputFileSignal = "Input for the Signal from file. Formatted in JSON."
@@ -64,8 +63,10 @@ const (
6463
FlagUpdateIDDefinition = "UpdateID to check the result of an update (either UpdateID or Update handler name should be passed)"
6564
FlagCancelWorkflow = "Cancel Workflow Execution with given Workflow Id."
6665
FlagWorkflowIDTerminate = "Terminate Workflow Execution with given Workflow Id."
67-
FlagQueryTerminate = "Terminate Workflow Executions with given List Filter."
66+
FlagQueryCancel = "Cancel Workflow Executions with given List Filter."
6867
FlagQueryDelete = "Delete Workflow Executions with given List Filter."
68+
FlagQuerySignal = "Signal Workflow Executions with given List List Filter."
69+
FlagQueryTerminate = "Terminate Workflow Executions with given List Filter."
6970
FlagEventIDDefinition = "The Event Id for any Event after WorkflowTaskStarted you want to reset to (exclusive). It can be WorkflowTaskCompleted, WorkflowTaskFailed or others."
7071
FlagQueryResetBatch = "Visibility Query of Search Attributes describing the Workflow Executions to reset. See https://docs.temporal.io/docs/tctl/workflow/list#--query."
7172
FlagInputFileReset = "Input file that specifies Workflow Executions to reset. Each line contains one Workflow Id as the base Run and, optionally, a Run Id."

workflow/workflow.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func NewWorkflowCommands() []*cli.Command {
111111
&cli.StringFlag{
112112
Name: common.FlagQuery,
113113
Aliases: common.FlagQueryAlias,
114-
Usage: common.FlagQueryDefinition,
114+
Usage: common.FlagQuerySignal,
115115
Category: common.CategoryMain,
116116
},
117117
&cli.StringFlag{
@@ -183,7 +183,7 @@ func NewWorkflowCommands() []*cli.Command {
183183
&cli.StringFlag{
184184
Name: common.FlagQuery,
185185
Aliases: common.FlagQueryAlias,
186-
Usage: common.FlagQueryDefinition,
186+
Usage: common.FlagQueryCancel,
187187
Category: common.CategoryMain,
188188
},
189189
&cli.StringFlag{

0 commit comments

Comments
 (0)