2021.4 #19

Merged
edraft merged 237 commits from 2021.4 into master 2021-04-01 10:13:33 +02:00
4 changed files with 8 additions and 0 deletions
Showing only changes of commit eef8488ca2 - Show all commits

View File

@ -1,5 +1,6 @@
import textwrap import textwrap
from cpl.utils.string import String
from cpl_cli.templates.template_file_abc import TemplateFileABC from cpl_cli.templates.template_file_abc import TemplateFileABC
@ -8,6 +9,7 @@ class ApplicationTemplate(TemplateFileABC):
def __init__(self, name: str): def __init__(self, name: str):
TemplateFileABC.__init__(self) TemplateFileABC.__init__(self)
name = String.convert_to_snake_case(name)
self._name = 'application.py' self._name = 'application.py'
self._path = f'src/{name}_cli/' self._path = f'src/{name}_cli/'
self._value = textwrap.dedent("""\ self._value = textwrap.dedent("""\

View File

@ -1,5 +1,6 @@
import textwrap import textwrap
from cpl.utils.string import String
from cpl_cli.templates.template_file_abc import TemplateFileABC from cpl_cli.templates.template_file_abc import TemplateFileABC
@ -8,6 +9,7 @@ class CLIInitTemplate(TemplateFileABC):
def __init__(self, name: str): def __init__(self, name: str):
TemplateFileABC.__init__(self) TemplateFileABC.__init__(self)
name = String.convert_to_snake_case(name)
self._name = '__init__.py' self._name = '__init__.py'
self._path = f'src/{name}_cli/' self._path = f'src/{name}_cli/'
self._value = textwrap.dedent("""\ self._value = textwrap.dedent("""\

View File

@ -1,5 +1,6 @@
import textwrap import textwrap
from cpl.utils.string import String
from cpl_cli.templates.template_file_abc import TemplateFileABC from cpl_cli.templates.template_file_abc import TemplateFileABC
@ -8,6 +9,7 @@ class MainWithApplicationHostAndStartupTemplate(TemplateFileABC):
def __init__(self, name: str): def __init__(self, name: str):
TemplateFileABC.__init__(self) TemplateFileABC.__init__(self)
name = String.convert_to_snake_case(name)
self._name = 'main.py' self._name = 'main.py'
self._path = f'src/{name}_cli/' self._path = f'src/{name}_cli/'
self._value = textwrap.dedent(f"""\ self._value = textwrap.dedent(f"""\

View File

@ -1,5 +1,6 @@
import textwrap import textwrap
from cpl.utils.string import String
from cpl_cli.templates.template_file_abc import TemplateFileABC from cpl_cli.templates.template_file_abc import TemplateFileABC
@ -8,6 +9,7 @@ class StartupTemplate(TemplateFileABC):
def __init__(self, name: str): def __init__(self, name: str):
TemplateFileABC.__init__(self) TemplateFileABC.__init__(self)
name = String.convert_to_snake_case(name)
self._name = 'startup.py' self._name = 'startup.py'
self._path = f'src/{name}_cli/' self._path = f'src/{name}_cli/'
self._value = textwrap.dedent("""\ self._value = textwrap.dedent("""\