cli icon indicating copy to clipboard operation
cli copied to clipboard

[Feature Request] Add a `patch` semantics option to CLI and/or support a `temporal schedule describe -o cli` command

Open GSmithApps opened this issue 9 months ago • 1 comments

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

The CLI for schedules only supports put semantics, and not patch semantics, which would be convenient for simple changes.

Describe the solution you'd like

I’d like an option to do patch semantics and/or support a temporal schedule describe -o cli command.

Additional context

Right now, when users want to update schedules, they often resort to a python script instead of the CLI

GSmithApps avatar May 06 '25 19:05 GSmithApps

Both accepting options for patching specific nested things and describe -o cli type of approach are rough with such an advanced data structure like schedule. I think the best approach here is to just have update accept the same JSON format as describe -o json (which is protojson) and so users can patch the JSON themselves before sending it back. There are get-then-mutate race conditions of course (I don't think conflict tokens are implemented yet for schedules).

cretz avatar May 06 '25 21:05 cretz