Skip to content

feat: add optional Typer lifecycle adapter - #83

Merged
codeforester merged 2 commits into
mainfrom
enhancement/61-20260804-typer-adapter
Aug 4, 2026
Merged

codeforester merged 2 commits into
mainfrom
enhancement/61-20260804-typer-adapter

Conversation

@codeforester

Copy link
Copy Markdown
Contributor

Summary

  • add the optional base-cli[typer] integration with attach_typer(), TyperAdapter, and get_typer_command()
  • preserve Typer-native command trees, typed parameters, nested apps, help, completion, dependency injection, and exceptions while reusing the existing Click lifecycle
  • add migration docs, an executable example, compatibility tests, and CI coverage without adding Typer to core dependencies

Closes #61

Verification

  • python -m pytest (full suite with Typer 0.12–0.25)
  • python -m mypy --strict examples/typed_consumer.py
  • ./tests/validate.sh

@codeforester
codeforester merged commit cbc30c7 into main Aug 4, 2026
17 checks passed
@codeforester
codeforester deleted the enhancement/61-20260804-typer-adapter branch August 4, 2026 19:16
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.

Publish an official Typer adapter

1 participant