Improved cpl g templating & added custom templating #137
This commit is contained in:
16
src/cpl_cli/configuration/schematic_collection.py
Normal file
16
src/cpl_cli/configuration/schematic_collection.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
Reference in New Issue
Block a user