Skip to content

feat(templates): add Jinja2 template engine with context/profile management - #2

Merged
jlaportebot merged 1 commit into
mainfrom
feat/templating-support
Jun 21, 2026
Merged

feat(templates): add Jinja2 template engine with context/profile management#2
jlaportebot merged 1 commit into
mainfrom
feat/templating-support

Conversation

@jlaportebot

Copy link
Copy Markdown
Owner

Summary

  • Add class with SandboxedEnvironment for secure Jinja2 rendering
  • Add that raises on missing variables (no silent failures)
  • Add for per-machine/per-profile template context in YAML
  • Add CLI commands: template scan, template render, context (list/show/set/delete), profile (activate/deactivate/machine/show)
  • Add DOTFILE_SYNC_DIR env var support for custom repo location
  • Fix lint issues: line-too-long, unused imports, format
  • Add 79 new test cases, raise coverage from 64% to 92%

Test Plan

  • 146 tests pass (79 new)
  • Ruff lint clean (ALL rules)
  • Ruff format check passes
  • ty type check passes
  • Coverage: 92% (threshold raised to 80%)

Closes #2

…gement

- Add TemplateEngine class with SandboxedEnvironment for secure rendering
- Add StrictUndefined that raises on missing variables
- Add ContextManager for per-machine/profile context in YAML
- Add template scan, render, context, and profile CLI commands
- Add DOTFILE_SYNC_DIR env var support for custom repo location
- Add comprehensive CLI integration tests (44 new test cases)
- Add extended core tests for push/pull/list/status/diff_detailed
- Fix lint issues: line-too-long, unused imports
- Raise coverage from 64% to 92%, threshold from 70% to 80%
@jlaportebot jlaportebot added the enhancement New feature or request label Jun 21, 2026
@jlaportebot
jlaportebot merged commit de8ba96 into main Jun 21, 2026
6 checks passed
@jlaportebot
jlaportebot deleted the feat/templating-support branch June 21, 2026 07:07
@jlaportebot
jlaportebot restored the feat/templating-support branch June 21, 2026 08:07
@jlaportebot
jlaportebot deleted the feat/templating-support branch June 21, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant