feat(ls): add --match and --expand for dataset discovery - #175
Open
djgormley wants to merge 2 commits into
Open
Conversation
djgormley
marked this pull request as draft
August 24, 2026 23:52
djgormley
force-pushed
the
feat/ls-match-expand
branch
from
August 25, 2026 02:54
500a910 to
cee12e4
Compare
djgormley
marked this pull request as ready for review
August 25, 2026 17:14
djgormley
marked this pull request as draft
August 25, 2026 21:21
djgormley
force-pushed
the
feat/ls-match-expand
branch
from
August 25, 2026 21:38
a79051a to
b4d4f75
Compare
djgormley
marked this pull request as ready for review
August 25, 2026 21:46
djgormley
enabled auto-merge
August 25, 2026 21:46
djgormley
disabled auto-merge
August 26, 2026 15:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Finding a dataset currently means walking the hierarchy one name at a time. This adds two options to
ls:--matchfilters the larger datasets of a scope (or of every scope, when none is given) by comma-separated, case-insensitive terms that must all appear in the combined "scope dataset" text.--expandopens each matched larger dataset one level and lists the children with their parent, so a hit that is a container (e.g.complex_gainsholding timestamped days) resolves to usable rows.Both compose the existing
functions.listREST calls; no new endpoints. A scope or dataset the server does not answer for is reported in afailedlist (stderr warning, or afailedkey with--json) rather than shown as empty; an empty map with unanswered queries exits 1.--expandwithout a scope or--matchis refused, since it would open every dataset in the archive.Docs updated; live tests for the new paths plus offline tests pinning the unanswered-vs-empty accounting.