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

Method _save

src/specify_cli/extensions/__init__.py:492–496  ·  view source on GitHub ↗

Save registry to disk.

(self)

Source from the content-addressed store, hash-verified

490 return {"schema_version": self.SCHEMA_VERSION, "extensions": {}}
491
492 def _save(self):
493 """Save registry to disk."""
494 self.extensions_dir.mkdir(parents=True, exist_ok=True)
495 with open(self.registry_path, "w") as f:
496 json.dump(self.data, f, indent=2)
497
498 def add(self, extension_id: str, metadata: dict):
499 """Add extension to registry.

Calls

no outgoing calls