Bugfixes in new command template
This commit is contained in:
parent
612c3583f1
commit
31307485f0
@ -10,11 +10,11 @@ class MainWithApplicationHostAndStartupTemplate(TemplateFileABC):
|
|||||||
|
|
||||||
self._name = 'main.py'
|
self._name = 'main.py'
|
||||||
self._path = f'src/{name}_cli/'
|
self._path = f'src/{name}_cli/'
|
||||||
self._value = textwrap.dedent("""\
|
self._value = textwrap.dedent(f"""\
|
||||||
from cpl.application import ApplicationBuilder
|
from cpl.application import ApplicationBuilder
|
||||||
|
|
||||||
from application import Application
|
from {name}_cli.application import Application
|
||||||
from startup import Startup
|
from {name}_cli.startup import Startup
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
@ -50,7 +50,7 @@ class MainWithApplicationBaseTemplate(TemplateFileABC):
|
|||||||
self._value = textwrap.dedent("""\
|
self._value = textwrap.dedent("""\
|
||||||
from cpl.application import ApplicationBuilder
|
from cpl.application import ApplicationBuilder
|
||||||
|
|
||||||
from application import Application
|
from {name}_cli.application import Application
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
Loading…
Reference in New Issue
Block a user