MCPcopy Create free account
hub / github.com/github/spec-kit / shared_templates_source

Function shared_templates_source

src/specify_cli/shared_infra.py:121–129  ·  view source on GitHub ↗

Return the bundled/source shared templates directory.

(
    *,
    core_pack: Path | None,
    repo_root: Path,
)

Source from the content-addressed store, hash-verified

119
120
121def shared_templates_source(
122 *,
123 core_pack: Path | None,
124 repo_root: Path,
125) -> Path:
126 """Return the bundled/source shared templates directory."""
127 if core_pack and (core_pack / "templates").is_dir():
128 return core_pack / "templates"
129 return repo_root / "templates"
130
131
132def shared_scripts_source(

Callers 2

refresh_shared_templatesFunction · 0.85
install_shared_infraFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected