Fixed help command & edited project structure doc

This commit is contained in:
Sven Heidemann 2021-03-09 22:31:54 +01:00
parent 314049f22b
commit 31515d2c3a
2 changed files with 9 additions and 11 deletions

View File

@ -1,8 +1,6 @@
/docs/
/src/ /src/
/src/assets
/src/tests /src/tests
/.gitignore /src/tests/__init__.py
/cpl.json /cpl.json
/LICENSE /LICENSE
/README.md /README.md

View File

@ -10,14 +10,14 @@ class Help(CommandABC):
def run(self, args: list[str]): def run(self, args: list[str]):
Console.write_line('Available Commands:') Console.write_line('Available Commands:')
commands = [ commands = [
['build (-b|-B)', 'Prepares files for publish into an output directory named dist/ at the given output path. Must be executed from within a workspace directory.'], ['build (b|B)', 'Prepares files for publish into an output directory named dist/ at the given output path. Must be executed from within a workspace directory.'],
['generate (-g|-G)', 'Generate a new file.'], ['generate (g|G)', 'Generate a new file.'],
['help (-h|-H)', 'Lists available command and their short descriptions.'], ['help (h|H)', 'Lists available command and their short descriptions.'],
['new (-n|-N)', 'Creates new CPL project.'], ['new (n|N)', 'Creates new CPL project.'],
['start (-s|-S)', 'Starts CPL project, restarting on file changes'], ['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.py. Must be executed from within a workspace directory.'],
['update (-u|-u)', 'Update CPL and project dependencies.'], ['update (u|u)', 'Update CPL and project dependencies.'],
['version (-v|-V)', 'Outputs CPL CLI version.'] ['version (v|V)', 'Outputs CPL CLI version.']
] ]
for name, description in commands: for name, description in commands:
Console.set_foreground_color('blue') Console.set_foreground_color('blue')