📋 Task Description
Implement a cgr --version command that displays the current package version.
🎯 Acceptance Criteria
🔗 Related Files/Components
- File:
codebase_rag/cli.py
- File:
pyproject.toml
📝 Additional Context
Typer supports version callbacks via typer.Option. Example:
from importlib.metadata import version
def version_callback(value: bool):
if value:
print(f"code-graph-rag version {version('code-graph-rag')}")
raise typer.Exit()
🚦 Priority
📊 Estimated Effort