Refactoring

This commit is contained in:
2021-03-10 14:07:52 +01:00
parent 6e33f0bcae
commit 1bff2ea168
5 changed files with 17 additions and 16 deletions

View File

@@ -15,7 +15,7 @@ class Help(CommandABC):
['help (h|H)', 'Lists available command and their short descriptions.'],
['new (n|N)', 'Creates new CPL project.'],
['start (s|S)', 'Starts CPL project, restarting on file changes'],
['publish (p|P)', 'Prepares files for publish into an output directory named dist/ at the given output path and executes setup.py. Must be executed from within a workspace directory.'],
['publish (p|P)', 'Prepares files for publish into an output directory named dist/ at the given output path and executes setup_template.py. Must be executed from within a workspace directory.'],
['update (u|u)', 'Update CPL and project dependencies.'],
['version (v|V)', 'Outputs CPL CLI version.']
]

View File

@@ -104,9 +104,10 @@ class New(CommandABC):
if result.lower() == 'y':
self._use_startup = True
# result = Console.read('Do you want to use service providing? (y/n) ')
# if result.lower() == 'y':
# self._use_service_providing = True
# else:
# result = Console.read('Do you want to use service providing? (y/n) ')
# if result.lower() == 'y':
# self._use_service_providing = True
def _build_project_dir(self, project_path: str):
if not os.path.isdir(project_path):