Skip to content

fix(modify): correct s-expr syntax in --where help examples (REQ-141)#382

Merged
avrabe merged 1 commit into
mainfrom
fix/modify-where-help-example
Jun 2, 2026
Merged

fix(modify): correct s-expr syntax in --where help examples (REQ-141)#382
avrabe merged 1 commit into
mainfrom
fix/modify-where-help-example

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Jun 2, 2026

Follow-up to #380. The modify --where after_help examples I added used an invalid filter shorthand — (type "requirement") / (status "draft") — where the s-expr head must be an operator, not the field name. Run verbatim they error (unknown form 'type'). Corrected to the canonical (= field "value") form:

rivet modify --where '(= status "draft")' --set-status implemented
rivet modify --where '(and (= type "requirement") (= status "draft"))' --set-status implemented --dry-run

Verified both now execute (dry-run) without a parse error. Caught while filing #381 (the parse error shows no example of the common field-equality form — the broader discoverability fix is tracked there).

Implements: REQ-141

🤖 Generated with Claude Code

The `modify --where` after_help examples I added in #380 used an invalid
filter shorthand — `(type "requirement")` / `(status "draft")` — where
the head symbol must be an operator, not the field name. Run verbatim
they error with "unknown form 'type'/'status'". Corrected to the
canonical `(= field "value")` form, both examples now run clean:

  rivet modify --where '(= status "draft")' --set-status implemented
  rivet modify --where '(and (= type "requirement") (= status "draft"))' …

Verified both examples execute (dry-run) without a parse error. The
broader discoverability gap (the parse error shows no example of the
common field-equality form) is tracked in #381.

Implements: REQ-141
Refs: REQ-007

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

📐 Rivet artifact delta

No artifact changes in this PR. Code-only changes (renderer, CLI wiring, tests) don't touch the artifact graph.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@avrabe avrabe merged commit 1363ca7 into main Jun 2, 2026
21 of 39 checks passed
@avrabe avrabe deleted the fix/modify-where-help-example branch June 2, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant