Skip to content

Cut Zebra CLI over to cli-core-yo v2#64

Merged
iamh2o merged 4 commits intomainfrom
codex/zebra-day-cli-v2
Apr 7, 2026
Merged

Cut Zebra CLI over to cli-core-yo v2#64
iamh2o merged 4 commits intomainfrom
codex/zebra-day-cli-v2

Conversation

@iamh2o
Copy link
Copy Markdown
Contributor

@iamh2o iamh2o commented Apr 7, 2026

Summary

  • cut Zebra over to the cli-core-yo v2 policy/runtime/registry model
  • move activation and dependency metadata to published cli-core-yo==2.0.0 with local TapDB and Daycog repo wiring
  • tighten help/docs/tests for root --no-auth, JSON handling, and migrated command registration

Validation

  • python -m compileall zebra_day/cli zebra_day/settings.py
  • python -m pytest -q tests/test_deploy_contract.py tests/test_cli.py tests/test_gui_cli.py tests/test_cli_registry_v2.py tests/test_cli_extended.py
  • python -m ruff check zebra_day tests
  • python -m build
  • manual probes for zday --help, zday --json version, JSON rejection on non-JSON commands, runtime failure on printer list without conda env, and migrated subgroup help/status paths

@iamh2o iamh2o marked this pull request as ready for review April 7, 2026 13:12
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8b94d38064

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +56 to +58
@tapdb_app.command("db")
def db_passthrough(
args: list[str] = _PASSTHROUGH_ARGS,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore unknown-option forwarding in tapdb passthrough commands

These passthrough handlers dropped the parser settings that previously enabled forwarding arbitrary tapdb flags. Click defaults to ignore_unknown_options=False and allow_extra_args=False, which means option-like tokens are treated as parser errors instead of leftovers for passthrough, so calls such as zday tapdb db ... --schema ... can fail before db_passthrough executes. This regresses the wrapper contract of delegating raw arguments to the external tapdb CLI.

Useful? React with 👍 / 👎.

Comment on lines +140 to +142
@cognito_app.command("daycog")
def daycog_passthrough(
args: list[str] = _PASSTHROUGH_ARGS,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore unknown-option forwarding in cognito daycog passthrough

The daycog passthrough command now parses arguments without unknown-option forwarding, so option-style arguments intended for daycog may be rejected by the CLI parser before reaching _run_daycog. Click’s default behavior is to error on unknown options unless ignore_unknown_options/allow_extra_args passthrough settings are enabled, so common invocations that rely on downstream flags can break despite this command being documented as raw pass-through.

Useful? React with 👍 / 👎.

@iamh2o iamh2o merged commit 8e9e4b8 into main Apr 7, 2026
12 checks passed
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