2021.4 #19
@ -5,7 +5,7 @@ from cpl.application.application_abc import ApplicationRuntimeABC
|
|||||||
from cpl.configuration.configuration_abc import ConfigurationABC
|
from cpl.configuration.configuration_abc import ConfigurationABC
|
||||||
from cpl.console.foreground_color import ForegroundColor
|
from cpl.console.foreground_color import ForegroundColor
|
||||||
from cpl.console.console import Console
|
from cpl.console.console import Console
|
||||||
from cpl.utils.string import String
|
from cpl.utils.string_class import String
|
||||||
from cpl_cli.command_abc import CommandABC
|
from cpl_cli.command_abc import CommandABC
|
||||||
from cpl_cli.templates.generate.abc_template import ABCTemplate
|
from cpl_cli.templates.generate.abc_template import ABCTemplate
|
||||||
from cpl_cli.templates.generate.class_template import ClassTemplate
|
from cpl_cli.templates.generate.class_template import ClassTemplate
|
||||||
|
@ -10,7 +10,7 @@ class ABCTemplate(TemplateFileABC):
|
|||||||
def __init__(self, name: str, schematic: str, schematic_upper: str, path: str):
|
def __init__(self, name: str, schematic: str, schematic_upper: str, path: str):
|
||||||
TemplateFileABC.__init__(self)
|
TemplateFileABC.__init__(self)
|
||||||
|
|
||||||
self._name = f'{String.convert_to_snake_case(name)}.{schematic}.py'
|
self._name = f'{String.convert_to_snake_case(name)}_{schematic}.py'
|
||||||
self._class_name = f'{String.first_to_upper(name)}{schematic_upper}'
|
self._class_name = f'{String.first_to_upper(name)}{schematic_upper}'
|
||||||
self._path = path
|
self._path = path
|
||||||
self._value = textwrap.dedent("""\
|
self._value = textwrap.dedent("""\
|
||||||
|
@ -10,7 +10,7 @@ class ClassTemplate(TemplateFileABC):
|
|||||||
def __init__(self, name: str, schematic: str, schematic_upper: str, path: str):
|
def __init__(self, name: str, schematic: str, schematic_upper: str, path: str):
|
||||||
TemplateFileABC.__init__(self)
|
TemplateFileABC.__init__(self)
|
||||||
|
|
||||||
self._name = f'{String.convert_to_snake_case(name)}.{schematic}.py'
|
self._name = f'{String.convert_to_snake_case(name)}_{schematic}.py'
|
||||||
self._class_name = f'{String.first_to_upper(name)}{schematic_upper}'
|
self._class_name = f'{String.first_to_upper(name)}{schematic_upper}'
|
||||||
self._path = path
|
self._path = path
|
||||||
self._value = textwrap.dedent("""\
|
self._value = textwrap.dedent("""\
|
||||||
|
@ -10,7 +10,7 @@ class ConfigModelTemplate(TemplateFileABC):
|
|||||||
def __init__(self, name: str, schematic: str, schematic_upper: str, path: str):
|
def __init__(self, name: str, schematic: str, schematic_upper: str, path: str):
|
||||||
TemplateFileABC.__init__(self)
|
TemplateFileABC.__init__(self)
|
||||||
|
|
||||||
self._name = f'{String.convert_to_snake_case(name)}.{schematic}.py'
|
self._name = f'{String.convert_to_snake_case(name)}_{schematic}.py'
|
||||||
self._class_name = f'{String.first_to_upper(name)}{schematic_upper}'
|
self._class_name = f'{String.first_to_upper(name)}{schematic_upper}'
|
||||||
self._path = path
|
self._path = path
|
||||||
self._value = textwrap.dedent("""\
|
self._value = textwrap.dedent("""\
|
||||||
|
@ -10,7 +10,7 @@ class EnumTemplate(TemplateFileABC):
|
|||||||
def __init__(self, name: str, schematic: str, schematic_upper: str, path: str):
|
def __init__(self, name: str, schematic: str, schematic_upper: str, path: str):
|
||||||
TemplateFileABC.__init__(self)
|
TemplateFileABC.__init__(self)
|
||||||
|
|
||||||
self._name = f'{String.convert_to_snake_case(name)}.{schematic}.py'
|
self._name = f'{String.convert_to_snake_case(name)}_{schematic}.py'
|
||||||
self._class_name = f'{String.first_to_upper(name)}{schematic_upper}'
|
self._class_name = f'{String.first_to_upper(name)}{schematic_upper}'
|
||||||
self._path = path
|
self._path = path
|
||||||
self._value = textwrap.dedent("""\
|
self._value = textwrap.dedent("""\
|
||||||
|
@ -10,7 +10,7 @@ class ServiceTemplate(TemplateFileABC):
|
|||||||
def __init__(self, name: str, schematic: str, schematic_upper: str, path: str):
|
def __init__(self, name: str, schematic: str, schematic_upper: str, path: str):
|
||||||
TemplateFileABC.__init__(self)
|
TemplateFileABC.__init__(self)
|
||||||
|
|
||||||
self._name = f'{String.convert_to_snake_case(name)}.{schematic}.py'
|
self._name = f'{String.convert_to_snake_case(name)}_{schematic}.py'
|
||||||
self._class_name = f'{String.first_to_upper(name)}{schematic_upper}'
|
self._class_name = f'{String.first_to_upper(name)}{schematic_upper}'
|
||||||
self._path = path
|
self._path = path
|
||||||
self._value = textwrap.dedent("""\
|
self._value = textwrap.dedent("""\
|
||||||
|
Loading…
Reference in New Issue
Block a user