Render script runtime command helpers for managed shared infra copies.
(content: str, separator: str)
| 285 | |
| 286 | |
| 287 | def _resolve_dynamic_command_refs(content: str, separator: str) -> str: |
| 288 | """Render script runtime command helpers for managed shared infra copies.""" |
| 289 | |
| 290 | content = _BASH_FORMAT_COMMAND_RE.sub( |
| 291 | lambda match: _format_speckit_command(match.group(2), separator), |
| 292 | content, |
| 293 | ) |
| 294 | return _POWERSHELL_FORMAT_COMMAND_RE.sub( |
| 295 | lambda match: f"'{_format_speckit_command(match.group(2), separator)}'", |
| 296 | content, |
| 297 | ) |
| 298 | |
| 299 | |
| 300 | def refresh_shared_templates( |
no test coverage detected