feat(cli): add compact output mode for read commands #120
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/118-compact-omp-output"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #118.
What changed
Verified
Deviations
none
VERDICT: request-changes
P1, src/cli.rs:1423-1427: Compact tasks list discards all but two entries from the daemon default 50-item page, but retains the daemon cursor. With 3-50 tasks there is no cursor, so entries 3 onward are inaccessible; with more than 50, the next cursor starts at item 51. Request a two-item server page by default in compact mode and use its cursor, rather than truncating a larger page locally.
P2, src/cli.rs:49-50: The global compact flag implies JSON through is_json, yet doctor, context add, and other commands still check cli.json directly. For example life doctor --compact prints human text, including on nonzero dependency errors, instead of a JSON error envelope. Require --json with --compact, scope the flag to supported reads, or route remaining output through the same JSON decision.
The new tests exercise a missing-item exit code but do not inspect the emitted error JSON for its code, warnings, or operation_id; add observable output assertions for the promised preservation. The commit message and PR title/body contain no backticks.
Pull request closed