Skip to content

Commit 718302c

Browse files
committed
refactor: use Jinja2 templating for shell command generation
- Replace manual string concatenation with Jinja2 templates - Centralize package manager config in _PM_CONFIG dict - Pre-compile templates for better performance - Add jinja2>=3.1.0 dependency Reduces template logic code from ~240 lines to ~88 lines while maintaining full API compatibility and all existing tests passing.
1 parent 6103cd0 commit 718302c

3 files changed

Lines changed: 211 additions & 259 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ classifiers = [
2727
dependencies = [
2828
"platformdirs>=4.0.0",
2929
"rich>=13.0.0",
30+
"jinja2>=3.1.0",
3031
]
3132

3233
[project.urls]

0 commit comments

Comments
 (0)