Files
cpl/src/cpl_cli/configuration/schematic_collection.py
2023-02-20 15:55:20 +01:00

14 lines
349 B
Python

from cpl_core.utils import String
class SchematicCollection:
_schematics: dict = {}
@classmethod
def register(cls, template: type, schematic: str, aliases: list[str]):
cls._schematics[schematic] = {"Template": template, "Aliases": aliases}
@classmethod
def get_schematics(cls) -> dict:
return cls._schematics