fix(postprocessing): add output and fix --restart flag for resume command#12002
Conversation
|
@paul43210 pls add a small update of the postprocessing readme |
|
I've commented on the linked ticket. If we need to show what is the postprocessing state, it should have its own command. From my point of view, the PR should just fix the issue with the invalid / missing flag. If you want to be nice, you can show a simple output on success. Changes should be around 5 lines of code. The rest seems a different feature. |
The `--restart` / `-r` flag checked `c.Bool("retrigger")` instead of
`c.Bool("restart")`, so it silently did nothing. Fix the flag name and
add a simple confirmation message on success.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
72c1914 to
1e8d411
Compare
|
Thanks for the feedback @jvillafanez — you're right, the store introspection was out of scope for this fix. I've slimmed it down to just the essentials:
The diff is now ~5 lines of code across a single file + changelog. The store query / table output can be a separate feature if needed down the road. |
|
I've restarted the CI because there were some unrelated test failures. Code looks fine. |
|
|
@paul43210 merged. Thanks for the find and the fix! |
…tput fix(postprocessing): add output and fix --restart flag for resume command



Summary
Fixes #11692 —
ocis postprocessing resumeproduces no output and the--restartflag is broken.c.Bool("retrigger")referenced a non-existent flag — corrected toc.Bool("restart")so the--restart/-rflag actually triggersRestartPostprocessingevents--jsonflag: Outputs matched uploads as a JSON array for scriptingExample output
Test plan
ocis postprocessing resume --step finished— shows table of uploads and countocis postprocessing resume --upload-id <id>— shows single uploadocis postprocessing resume --restart --upload-id <id>— uses RestartPostprocessing eventocis postprocessing resume --json --step finished— outputs valid JSON arrayocis postprocessing resume --step finishedon empty store — prints "No uploads found" gracefully🤖 Generated with Claude Code