MCPcopy Index your code
hub / github.com/github/spec-kit / _resolve_dynamic_command_refs

Function _resolve_dynamic_command_refs

src/specify_cli/shared_infra.py:287–297  ·  view source on GitHub ↗

Render script runtime command helpers for managed shared infra copies.

(content: str, separator: str)

Source from the content-addressed store, hash-verified

285
286
287def _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
300def refresh_shared_templates(

Callers 1

install_shared_infraFunction · 0.85

Calls 1

_format_speckit_commandFunction · 0.85

Tested by

no test coverage detected