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

Method _save

src/specify_cli/presets/__init__.py:356–360  ·  view source on GitHub ↗

Save registry to disk.

(self)

Source from the content-addressed store, hash-verified

354 }
355
356 def _save(self):
357 """Save registry to disk."""
358 self.packs_dir.mkdir(parents=True, exist_ok=True)
359 with open(self.registry_path, 'w') as f:
360 json.dump(self.data, f, indent=2)
361
362 def add(self, pack_id: str, metadata: dict):
363 """Add preset to registry.

Calls

no outgoing calls