()
| 135 | |
| 136 | |
| 137 | def load_template() -> str: |
| 138 | if not TEMPLATE_PATH.exists(): |
| 139 | print(f"ERROR: Template not found: {TEMPLATE_PATH}", file=sys.stderr) |
| 140 | sys.exit(1) |
| 141 | return TEMPLATE_PATH.read_text() |
| 142 | |
| 143 | |
| 144 | def render_template(template: str, platform: Platform) -> str: |