Skip to content

feat: add prompt templating with --template flag#349

Merged
tbckr merged 1 commit intotbckr:mainfrom
zorak1103:prmopts
Feb 26, 2026
Merged

feat: add prompt templating with --template flag#349
tbckr merged 1 commit intotbckr:mainfrom
zorak1103:prmopts

Conversation

@zorak1103
Copy link
Copy Markdown
Collaborator

Add support for data-driven prompting using Go text/template syntax. Users can pipe YAML or JSON variables via stdin and inject them into reusable prompt templates.

  • Add --template/-T flag to root command
  • Support both YAML and JSON input parsing
  • Add documentation in README, examples, and dedicated templates.md
  • Include comprehensive test coverage for template functionality

This implements #101

@zorak1103 zorak1103 requested a review from tbckr as a code owner February 25, 2026 19:38
Add support for data-driven prompting using Go text/template syntax.
Users can pipe YAML or JSON variables via stdin and inject them into
reusable prompt templates.

- Add --template/-T flag to root command
- Support both YAML and JSON input parsing
- Add documentation in README, examples, and dedicated templates.md
- Include comprehensive test coverage for template functionality
@tbckr tbckr merged commit 8bf40f9 into tbckr:main Feb 26, 2026
5 checks passed
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 26, 2026

Codecov Report

❌ Patch coverage is 88.46154% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.07%. Comparing base (abd2da9) to head (d5b6606).
⚠️ Report is 276 commits behind head on main.

Files with missing lines Patch % Lines
pkg/cli/root.go 86.66% 2 Missing and 2 partials ⚠️
pkg/fs/fs.go 60.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #349      +/-   ##
==========================================
+ Coverage   75.80%   79.07%   +3.26%     
==========================================
  Files          20       21       +1     
  Lines        1298     1123     -175     
==========================================
- Hits          984      888      -96     
+ Misses        226      148      -78     
+ Partials       88       87       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants