Add --registry / --catalog-url CLI flags via a with-config chokepoint #4

Merged
dxtr merged 2 commits from registry-flag into main 2026-06-06 20:41:58 +02:00
Owner

Make the OCI registry (and catalog URL) overridable from the CLI without a
rebuild — previously registry (ghcr.io/ocicl) and catalog-url were only
settable from the REPL.

  • New with-config macro binds the registry / catalog-url specials from
    optional overrides (NIL keeps the compiled default), folded into with-cli-db
    so every command honors the flags through one chokepoint — no per-handler
    duplication.
  • Add global --registry and --catalog-url options with no :initial-value, so
    an absent flag falls back to the special (single source of the default).
    Enrichment (ocicl list / oras pull) and catalog fetch pick them up, including
    the lparallel workers, which capture registry at kernel creation inside the
    bound extent.

Tests (offline): with-config override + fallback/unwind; top-command exposes
--db/--registry/--catalog-url. m4-cli.sh: --help lists the new flags.

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

Make the OCI registry (and catalog URL) overridable from the CLI without a rebuild — previously *registry* (ghcr.io/ocicl) and *catalog-url* were only settable from the REPL. - New `with-config` macro binds the *registry* / *catalog-url* specials from optional overrides (NIL keeps the compiled default), folded into `with-cli-db` so every command honors the flags through one chokepoint — no per-handler duplication. - Add global `--registry` and `--catalog-url` options with no :initial-value, so an absent flag falls back to the special (single source of the default). Enrichment (ocicl list / oras pull) and catalog fetch pick them up, including the lparallel workers, which capture *registry* at kernel creation inside the bound extent. Tests (offline): with-config override + fallback/unwind; top-command exposes --db/--registry/--catalog-url. m4-cli.sh: --help lists the new flags. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Make the OCI registry (and catalog URL) overridable from the CLI without a
rebuild — previously *registry* (ghcr.io/ocicl) and *catalog-url* were only
settable from the REPL.

- New `with-config` macro binds the *registry* / *catalog-url* specials from
  optional overrides (NIL keeps the compiled default), folded into `with-cli-db`
  so every command honors the flags through one chokepoint — no per-handler
  duplication.
- Add global `--registry` and `--catalog-url` options with no :initial-value, so
  an absent flag falls back to the special (single source of the default).
  Enrichment (ocicl list / oras pull) and catalog fetch pick them up, including
  the lparallel workers, which capture *registry* at kernel creation inside the
  bound extent.

Tests (offline): with-config override + fallback/unwind; top-command exposes
--db/--registry/--catalog-url. m4-cli.sh: --help lists the new flags.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Merge branch 'main' into registry-flag
All checks were successful
CI / test (pull_request) Successful in 1m47s
64e46a94fc
dxtr merged commit 6037fcf2d0 into main 2026-06-06 20:41:58 +02:00
dxtr deleted branch registry-flag 2026-06-06 20:41:58 +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!4
No description provided.