MCPcopy
hub / github.com/github/spec-kit / _get_speckit_version

Function _get_speckit_version

src/specify_cli/integrations/_helpers.py:26–34  ·  view source on GitHub ↗

Return the current Spec Kit version. Resolved lazily through ``_commands.get_speckit_version`` so that tests that monkeypatch ``specify_cli.integrations._commands.get_speckit_version`` still affect helpers called from the command handlers.

()

Source from the content-addressed store, hash-verified

24
25
26def _get_speckit_version() -> str:
27 """Return the current Spec Kit version.
28
29 Resolved lazily through ``_commands.get_speckit_version`` so that tests
30 that monkeypatch ``specify_cli.integrations._commands.get_speckit_version``
31 still affect helpers called from the command handlers.
32 """
33 from . import _commands # noqa: PLC0415 — intentional late import to avoid circular + enable patching
34 return _commands.get_speckit_version()
35
36
37# ---------------------------------------------------------------------------

Callers 6

integration_installFunction · 0.85
_write_integration_jsonFunction · 0.85
integration_switchFunction · 0.85
integration_upgradeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected