cli icon indicating copy to clipboard operation
cli copied to clipboard

[Feature Request] workflow reset-batch should prompt when using query flag

Open Multiply opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

temporal workflow reset-batch --query "..." does not prompt the user with a count of workflows that will be affected. A very open query could affect the whole namespace. It's very easy to make mistakes here.

Describe the solution you'd like

For most (if not all?) other commands that supports the --query flag, you're presented with a prompt before running the command. A prompt similar to those would be ideal, showing the count of workflows affected.

Example from temporal workflow terminate --query "...":

Will start a batch job operating on 123 Workflow Executions. Continue? Y/N

Multiply avatar Apr 26 '23 09:04 Multiply