Move --registry / --catalog-url onto index & refresh subcommands #6

Merged
dxtr merged 1 commit from registry-subcommand-opt into main 2026-06-07 01:58:26 +02:00
Owner

These options only apply to enrichment, so define them on the index and refresh
commands (via a shared enrichment-source-options helper) instead of globally.
Now lispsearch index --registry ... works — the natural ordering — rather than
requiring the flag before the subcommand. with-cli-db's getopt* already walks the
command, so the binding chokepoint is unchanged; commands without the option just
fall back to the registry / catalog-url defaults.

Tests: cli-options-wired now asserts --db is global while --registry/--catalog-url
are on index & refresh (and not global); m4-cli.sh checks index --help.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

These options only apply to enrichment, so define them on the index and refresh commands (via a shared enrichment-source-options helper) instead of globally. Now `lispsearch index --registry ...` works — the natural ordering — rather than requiring the flag before the subcommand. with-cli-db's getopt* already walks the command, so the binding chokepoint is unchanged; commands without the option just fall back to the *registry* / *catalog-url* defaults. Tests: cli-options-wired now asserts --db is global while --registry/--catalog-url are on index & refresh (and not global); m4-cli.sh checks `index --help`. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Move --registry / --catalog-url onto index & refresh subcommands
All checks were successful
CI / test (pull_request) Successful in 1m31s
141122e68d
These options only apply to enrichment, so define them on the index and refresh
commands (via a shared enrichment-source-options helper) instead of globally.
Now `lispsearch index --registry ...` works — the natural ordering — rather than
requiring the flag before the subcommand. with-cli-db's getopt* already walks the
command, so the binding chokepoint is unchanged; commands without the option just
fall back to the *registry* / *catalog-url* defaults.

Tests: cli-options-wired now asserts --db is global while --registry/--catalog-url
are on index & refresh (and not global); m4-cli.sh checks `index --help`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
dxtr merged commit 7ef2b7a3fa into main 2026-06-07 01:58:26 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dxtr/ocicl-search!6
No description provided.