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

Method is_installed

src/specify_cli/presets/__init__.py:529–541  ·  view source on GitHub ↗

Check if preset is installed. Args: pack_id: Preset ID Returns: True if pack is installed, False if not or registry corrupted

(self, pack_id: str)

Source from the content-addressed store, hash-verified

527 )
528
529 def is_installed(self, pack_id: str) -> bool:
530 """Check if preset is installed.
531
532 Args:
533 pack_id: Preset ID
534
535 Returns:
536 True if pack is installed, False if not or registry corrupted
537 """
538 packs = self.data.get("presets")
539 if not isinstance(packs, dict):
540 return False
541 return pack_id in packs
542
543
544class PresetManager:

Callers 11

test_empty_registryMethod · 0.95
test_add_and_getMethod · 0.95
test_removeMethod · 0.95
test_persistenceMethod · 0.95
removeMethod · 0.45
get_packMethod · 0.45
preset_removeFunction · 0.45
preset_set_priorityFunction · 0.45
preset_enableFunction · 0.45
preset_disableFunction · 0.45

Calls 1

getMethod · 0.45

Tested by 4

test_empty_registryMethod · 0.76
test_add_and_getMethod · 0.76
test_removeMethod · 0.76
test_persistenceMethod · 0.76