-
Notifications
You must be signed in to change notification settings - Fork 1
Release/0.5.0 #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR prepares the documentation and CLI functionality for the 0.5.0 release. The changes enhance documentation UX with systematic improvements across 16 files and add missing CLI functionality to match existing documentation.
- Documentation UX improvements with consistent output examples, better scannability, and reader segmentation
- CLI enhancement with --version and -h flags to match documented functionality
- Global application of # → output pattern for enhanced educational value
Reviewed Changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| python/cel/cli.py | Added version support and help alias functionality to CLI |
| docs/tutorials/your-first-integration.md | Enhanced with output examples and consistent # → pattern |
| docs/tutorials/thinking-in-cel.md | Restructured with quick decision guide and improved scannability |
| docs/tutorials/extending-cel.md | Improved copy-paste experience with step-by-step organization |
| docs/reference/python-api.md | Added output examples for all API demonstrations |
| docs/reference/cel-compliance.md | Reader segmentation and severity overview for missing features |
| docs/index.md | Enhanced positioning and feature highlights with output examples |
| docs/how-to-guides/production-patterns-best-practices.md | Added comprehensive output annotations for production examples |
| docs/how-to-guides/error-handling.md | Enhanced error examples with expected output patterns |
| docs/how-to-guides/dynamic-query-filters.md | Added query result examples and filter demonstrations |
| docs/how-to-guides/business-logic-data-transformation.md | Comprehensive output examples for transformation scenarios |
| docs/how-to-guides/access-control-policies.md | Enhanced policy examples with access decision outputs |
| docs/getting-started/quick-start.md | Improved onboarding with clear output expectations |
| docs/getting-started/installation.md | Added installation progress output examples |
| docs/cookbook.md | Enhanced recipes with working code examples and outputs |
| docs/contributing.md | Added development workflow output examples |
| Cargo.toml | Version bump to 0.5.0 |
| CHANGELOG.md | Updated changelog format for release |
| """Print version and exit.""" | ||
| if value: | ||
| console.print(f"cel {get_version()}") | ||
| raise typer.Exit() |
Copilot
AI
Aug 8, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version_callback function should handle the case where value is False to avoid unnecessary execution. Consider adding an early return if not value.
| raise typer.Exit() | |
| if not value: | |
| return | |
| console.print(f"cel {get_version()}") | |
| raise typer.Exit() |
| def version_callback(value: bool): | ||
| """Print version and exit.""" | ||
| if value: | ||
| console.print(f"cel {get_version()}") |
Copilot
AI
Aug 8, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Consider using consistent formatting across the codebase. The version output format should match any existing version display patterns in the application.
| console.print(f"cel {get_version()}") | |
| console.print( | |
| Panel( | |
| f"[bold cyan]Common Expression Language (CEL)[/bold cyan]\n[white]Version:[/white] [bold]{get_version()}[/bold]", | |
| title="[green]CEL CLI Version[/green]", | |
| expand=False, | |
| ) | |
| ) |
Updates to docs ahead of 0.5.0 release
📚 Documentation UX Improvements
Problem: Documentation was technically complete but difficult to scan and use effectively. Users struggled with:
Solution: Applied systematic UX improvements across 16 documentation files:
🎯 Core Landing Page (docs/index.md)
🧠 Philosophy Guide (docs/tutorials/thinking-in-cel.md)
📖 Cookbook (docs/cookbook.md)
🔧 Advanced Tutorial (docs/tutorials/extending-cel.md)
📋 Compliance Reference (docs/reference/cel-compliance.md)
🌐 Global Consistency
🛠️ CLI Functionality Enhancement
Problem: CLI was missing --version and -h functionality that was already documented in getting-started guide.
Solution: Added complete version support to match documentation:
✨ Version Support
🔄 Help Alias Support
🧪 Quality Assurance