Improved path and name handling in new command

This commit is contained in:
2021-04-10 11:01:56 +02:00
parent 2b5c75cc67
commit f6fc5d09e7
3 changed files with 15 additions and 3 deletions

View File

@@ -129,8 +129,12 @@ class ConsoleBuilder:
)
for template in templates:
divider = ''
if not template.path.endswith('/'):
divider = '/'
Console.spinner(
f'Creating {proj_name}/{template.path}{template.name}',
f'Creating {proj_name}/{template.path}{divider}{template.name}',
TemplateBuilder.build,
project_path,
template,

View File

@@ -129,8 +129,12 @@ class LibraryBuilder:
)
for template in templates:
divider = ''
if not template.path.endswith('/'):
divider = '/'
Console.spinner(
f'Creating {proj_name}/{template.path}{template.name}',
f'Creating {proj_name}/{template.path}{divider}{template.name}',
TemplateBuilder.build,
project_path,
template,