Commit 718302c
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
0 commit comments