Save registry to disk.
(self)
| 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. |
no outgoing calls