Improved path and name handling in new command
This commit is contained in:
@@ -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,
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user