Skip to content

fix(cli): align hook dry-run with installed command - #463

Open
slegarraga wants to merge 1 commit into
DobermanCore:mainfrom
slegarraga:fix/install-hooks-dry-run-command
Open

fix(cli): align hook dry-run with installed command#463
slegarraga wants to merge 1 commit into
DobermanCore:mainfrom
slegarraga:fix/install-hooks-dry-run-command

Conversation

@slegarraga

Copy link
Copy Markdown
Contributor

Closes #429

What

  • Uses DASHBOARD_COMMAND in both install and uninstall dry-run previews so the displayed SessionStart command is the same one the installer writes.
  • Adds regression coverage asserting the preview contains doberman session-summary and no longer mentions doberman dashboard.

Verification

  • .venv/bin/pytest tests/unit/test_install_hooks.py — 44 passed.
  • .venv/bin/pytest tests/unit -k 'install_hooks or cli_help or cli_encode_safe' — 117 passed, 1 skipped.
  • .venv/bin/ruff check src tests — passed.
  • .venv/bin/ruff format --check src/doberman/cli/main.py tests/unit/test_install_hooks.py — passed.

Import DASHBOARD_COMMAND so install and uninstall previews cannot drift from the SessionStart command written by the installer. Closes DobermanCore#429.
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.

cli: install-hooks --dry-run previews doberman dashboard, but writes doberman session-summary

1 participant