Skip to content

Add filter, sort, and unique shaping commands (v0.3.0) - #4

Merged
rmkr-dev merged 1 commit into
mainfrom
feat/filter-sort-unique
Sep 24, 2026
Merged

rmkr-dev merged 1 commit into
mainfrom
feat/filter-sort-unique

Conversation

@rmkr-dev

Copy link
Copy Markdown
Owner

Summary

v0.3.0 adds three array-shaping commands that sit alongside select / pick / omit:

  • filter KEY OP VALUE — keep objects matching a comparison (eq, ne, gt, ge, lt, le, contains, exists). Non-object items are dropped; root must be a list.
  • sort KEY [--desc] — sort objects by a top-level key; missing keys sort last (first with --desc).
  • unique [KEY] — order-preserving dedupe by key or by whole-item JSON.

Shared -f / -o / --minify flags and the same trailing optional file handling as pick/omit.

Test plan

  • Unit tests for filter / sort / unique helpers
  • CLI smoke tests for the three new commands
  • Local pytest green (53 passed)
  • CI matrix (Python 3.11 / 3.12) green on this PR

Introduce v0.3.0 array shaping: filter by KEY OP VALUE, sort by key
(with --desc), and unique dedupe (by key or whole item). Extends
shape helpers, CLI wiring, tests, and README.
@rmkr-dev
rmkr-dev merged commit 222867a into main Sep 24, 2026
2 checks passed
@rmkr-dev
rmkr-dev deleted the feat/filter-sort-unique branch September 24, 2026 12:52
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