1.1 KiB
1.1 KiB
14. Clarify Delete Filter Semantics
Summary
Make it clear that record deletion supports a simple metadata equality filter in key=value form.
Implementation Steps
- Rename internal parser variables from
conditiontokeywhere equality-only semantics are intended. - Update CLI help for
--whereto sayMetadata equality filter in the format <key>=<value>. - Update error messages to use
<key>=<value>. - Update README command documentation to include the
deletecommand and its filter syntax. - Reserve richer Chroma filters, such as JSON filters, for a later feature.
Public Interface Changes
- CLI option remains
--where. - Help text and error messages become more precise.
- No richer filter syntax is added yet.
Test Plan
- Test valid
key=valueparsing with whitespace trimming. - Test missing separator, empty key, and empty value errors.
- Verify
chromy delete --helpdocuments equality semantics.
Assumptions
- Keeping the option name
--whereis acceptable for backward compatibility. - Renaming to
--keyis not worth the CLI break for the current feature set.