2021.4 #19

Merged
edraft merged 237 commits from 2021.4 into master 2021-04-01 10:13:33 +02:00
Showing only changes of commit 2ad97d5021 - Show all commits

View File

@ -46,7 +46,6 @@ class Generate(CommandABC):
name = parts[len(parts) - 1] name = parts[len(parts) - 1]
file_path = os.path.join(self._runtime.working_directory, rel_path, f'{String.convert_to_snake_case(name)}.py') file_path = os.path.join(self._runtime.working_directory, rel_path, f'{String.convert_to_snake_case(name)}.py')
print(file_path)
if not os.path.isdir(os.path.dirname(file_path)): if not os.path.isdir(os.path.dirname(file_path)):
os.makedirs(os.path.dirname(file_path)) os.makedirs(os.path.dirname(file_path))
@ -81,19 +80,19 @@ class Generate(CommandABC):
self._generate_abc(name) self._generate_abc(name)
elif schematic == 'class': elif schematic == 'class':
print(schematic) pass
elif schematic == 'configmodel': elif schematic == 'configmodel':
print(schematic) pass
elif schematic == 'enum': elif schematic == 'enum':
print(schematic) pass
elif schematic == 'service': elif schematic == 'service':
print(schematic) pass
else: else:
Console.error('') self._help('Usage: cpl generate <schematic> [options]')
exit() exit()
Console.write('\n') Console.write('\n')