Skip to content

feat: Add support for Template Options#128

Merged
github-actions[bot] merged 1 commit into
stagingfrom
feat/add-template-options-2644159533550633636
Jul 7, 2026
Merged

feat: Add support for Template Options#128
github-actions[bot] merged 1 commit into
stagingfrom
feat/add-template-options-2644159533550633636

Conversation

@julwrites

Copy link
Copy Markdown
Owner

This PR implements support for Template Options (-t, --template) as defined in Gap 2 of the BACKLOG.md.

Changes:

  • Configuration: Added template field to defaults in lua/llm/config.lua.
  • Commands: Created get_template_arg helper in lua/llm/commands.lua and injected it into the prompt building functions to append the -t argument.
  • Tests: Added comprehensive unit tests for get_template_arg in commands_spec.lua ensuring correct behavior when the config option is populated versus absent.
  • Maintenance: Removed Gap 2 from the backlog, marking it complete. All tests pass locally.

PR created automatically by Jules for task 2644159533550633636 started by @julwrites

- Added `template` option to `M.defaults` in `lua/llm/config.lua`.
- Created `M.get_template_arg()` in `lua/llm/commands.lua` to parse the option.
- Injected `M.get_template_arg()` into `M.prompt`, `M.prompt_with_current_file`, and `M.prompt_with_selection` to pass `-t` flag to the CLI.
- Added unit tests for `get_template_arg` in `tests/spec/commands_spec.lua`.
- Removed Gap 2 from `BACKLOG.md` as it is now completed.

Co-authored-by: julwrites <18639913+julwrites@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions
github-actions Bot merged commit db6ea5f into staging Jul 7, 2026
3 checks passed
@github-actions
github-actions Bot deleted the feat/add-template-options-2644159533550633636 branch July 7, 2026 00:34
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.

1 participant