feat: add eval cmd#154
Conversation
WalkthroughAdded a new CEL expression evaluator CLI tool at Changes
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@README.md`:
- Around line 154-155: The README has an unclosed Go code fence so the "## CEL
eval helper" heading is rendered as code; close the open Go fence (the ```go
block started earlier) immediately before the "## CEL eval helper" heading so
the new section is treated as Markdown rather than code (i.e., insert the
matching closing triple-backtick right before the heading).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: e8837a93-74bc-4f1f-baf2-56a53e7de92c
📒 Files selected for processing (3)
README.mdcmd/ceval/main.gocmd/ceval/main_test.go
|
|
||
| ## CEL eval helper |
There was a problem hiding this comment.
Close the previous Go code fence before this new section.
The ## CEL eval helper heading is currently still inside the Go fenced block opened earlier, so the new docs will render as code instead of Markdown.
📝 Proposed fix
err := gomplate.Walk(map[string]any{"name": "world"}, &cfg)
// cfg.Message == "Hello, world!"
+
+```
## CEL eval helper🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@README.md` around lines 154 - 155, The README has an unclosed Go code fence
so the "## CEL eval helper" heading is rendered as code; close the open Go fence
(the ```go block started earlier) immediately before the "## CEL eval helper"
heading so the new section is treated as Markdown rather than code (i.e., insert
the matching closing triple-backtick right before the heading).
Summary by CodeRabbit
New Features
cevalCLI tool for evaluating CEL expressions against YAML/JSON files.Documentation
Tests