Skip to content

feat: add version flag to CLI entry points#53

Open
Jiya3177 wants to merge 1 commit into
Hell1213:mainfrom
Jiya3177:feat/version-flag-cli-25
Open

feat: add version flag to CLI entry points#53
Jiya3177 wants to merge 1 commit into
Hell1213:mainfrom
Jiya3177:feat/version-flag-cli-25

Conversation

@Jiya3177
Copy link
Copy Markdown

Summary

Add --version support to both CLI entry points.

Related Issue

Fixes #25

Type of Change

  • Bug fix
  • New feature
  • Documentation
  • Refactoring
  • Test changes
  • CI/Chore

Testing

  • uv run ruff check passes
  • uv run mypy passes
  • uv run pytest passes
  • Manual testing done

Manual testing:

  • PYTHONPATH=src python3 -m pytest tests/cli/test_new_cli.py::test_typer_app_version_option tests/cli/test_oss_commands.py::test_main_version_option
  • python3 -m ruff check main.py src/oss_dev/cli/app.py tests/cli/test_new_cli.py tests/cli/test_oss_commands.py

Note: Running the broader CLI test file still shows unrelated existing environment/config failures around missing Gemini API key.

Description

Added Click --version / -V support to the top-level oss-dev CLI using the shared version string from src/oss_dev/_version.py.

Verified the Typer oss-dev-new CLI already uses the same shared version string and added test coverage for it.

Both entry points now print:

oss-dev v0.2.0

and exit cleanly without requiring config or API keys.

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.

Add --version flag to both CLI entry points

1 participant