Added discord command & event to cpl g schematics #143

This commit is contained in:
2022-12-08 10:36:23 +01:00
parent 4fbb3ec838
commit 2f8dc63cdc
10 changed files with 146 additions and 16 deletions

View File

@@ -1,10 +1,14 @@
from cpl_cli.abc.generate_schematic_abc import GenerateSchematicABC
from cpl_core.utils import String
class ABC(GenerateSchematicABC):
def __init__(self, *args):
GenerateSchematicABC.__init__(self, *args)
def __init__(self, name: str, schematic: str, path: str):
GenerateSchematicABC.__init__(self, name, schematic, path)
self._class_name = name
if name != '':
self._class_name = f'{String.first_to_upper(name.replace(schematic, ""))}ABC'
def get_code(self) -> str:
code = """\