2021.4.post1 #31

Merged
edraft merged 92 commits from 2021.4.post1 into master 2021-05-19 09:00:40 +02:00
12 changed files with 15 additions and 15 deletions
Showing only changes of commit 8f3ee53915 - Show all commits

View File

@ -29,9 +29,9 @@ class AddService(CommandABC):
def help_message(self) -> str: def help_message(self) -> str:
return textwrap.dedent("""\ return textwrap.dedent("""\
Adds a project reference to given project. Adds a project reference to given project.
usage: cpl add <source-project> <target-project> Usage: cpl add <source-project> <target-project>
arguments: Arguments:
source-project: Name of the project to which the reference has to be source-project: Name of the project to which the reference has to be
target-project: Name of the project to be referenced target-project: Name of the project to be referenced
""") """)

View File

@ -19,7 +19,7 @@ class BuildService(CommandABC):
def help_message(self) -> str: def help_message(self) -> str:
return textwrap.dedent("""\ return textwrap.dedent("""\
Copies an python app into an output directory named build/ at the given output path. Must be executed within a CPL workspace or project directory Copies an python app into an output directory named build/ at the given output path. Must be executed within a CPL workspace or project directory
usage: cpl build Usage: cpl build
""") """)
def run(self, args: list[str]): def run(self, args: list[str]):

View File

@ -60,13 +60,13 @@ class GenerateService(CommandABC):
def help_message(self) -> str: def help_message(self) -> str:
return textwrap.dedent("""\ return textwrap.dedent("""\
Generate a file based on schematic. Generate a file based on schematic.
usage: cpl generate <schematic> <name> Usage: cpl generate <schematic> <name>
arguments: Arguments:
schematic: The schematic to generate. schematic: The schematic to generate.
name: The name of the generated file name: The name of the generated file
schematics: Schematics:
abc abc
class class
enum enum

View File

@ -23,7 +23,7 @@ class HelpService(CommandABC):
def help_message(self) -> str: def help_message(self) -> str:
return textwrap.dedent("""\ return textwrap.dedent("""\
Lists available command and their short descriptions. Lists available command and their short descriptions.
usage: cpl help <command> Usage: cpl help <command>
Arguments: Arguments:
command The command to display the help message for command The command to display the help message for

View File

@ -44,7 +44,7 @@ class InstallService(CommandABC):
def help_message(self) -> str: def help_message(self) -> str:
return textwrap.dedent("""\ return textwrap.dedent("""\
Installs given package via pip Installs given package via pip
usage: cpl install <package> Usage: cpl install <package>
Arguments: Arguments:
package The package to install package The package to install

View File

@ -51,7 +51,7 @@ class NewService(CommandABC):
def help_message(self) -> str: def help_message(self) -> str:
return textwrap.dedent("""\ return textwrap.dedent("""\
Generates a workspace and initial project or add a project to workspace. Generates a workspace and initial project or add a project to workspace.
usage: cpl new <type> <name> Usage: cpl new <type> <name>
Arguments: Arguments:
type The project type of the initial project type The project type of the initial project

View File

@ -19,7 +19,7 @@ class PublishService(CommandABC):
def help_message(self) -> str: def help_message(self) -> str:
return textwrap.dedent("""\ return textwrap.dedent("""\
Prepares files for publish into an output directory named dist/ at the given output path and executes setup.py. Prepares files for publish into an output directory named dist/ at the given output path and executes setup.py.
usage: cpl publish Usage: cpl publish
""") """)
def run(self, args: list[str]): def run(self, args: list[str]):

View File

@ -30,7 +30,7 @@ class RemoveService(CommandABC):
def help_message(self) -> str: def help_message(self) -> str:
return textwrap.dedent("""\ return textwrap.dedent("""\
Removes a project from workspace. Removes a project from workspace.
usage: cpl add <project> Usage: cpl remove <project>
Arguments: Arguments:
project The name of the project to delete project The name of the project to delete

View File

@ -19,7 +19,7 @@ class StartService(CommandABC):
def help_message(self) -> str: def help_message(self) -> str:
return textwrap.dedent("""\ return textwrap.dedent("""\
Starts your application, restarting on file changes. Starts your application, restarting on file changes.
usage: cpl start Usage: cpl start
""") """)
def run(self, args: list[str]): def run(self, args: list[str]):

View File

@ -36,7 +36,7 @@ class UninstallService(CommandABC):
def help_message(self) -> str: def help_message(self) -> str:
return textwrap.dedent("""\ return textwrap.dedent("""\
Uninstalls given package via pip Uninstalls given package via pip
usage: cpl uninstall <package> Usage: cpl uninstall <package>
Arguments: Arguments:
package The package to uninstall package The package to uninstall

View File

@ -43,7 +43,7 @@ class UpdateService(CommandABC):
def help_message(self) -> str: def help_message(self) -> str:
return textwrap.dedent("""\ return textwrap.dedent("""\
Updates the CPL and project dependencies. Updates the CPL and project dependencies.
usage: cpl update Usage: cpl update
""") """)
def _collect_project_dependencies(self) -> list[tuple]: def _collect_project_dependencies(self) -> list[tuple]:

View File

@ -23,7 +23,7 @@ class VersionService(CommandABC):
def help_message(self) -> str: def help_message(self) -> str:
return textwrap.dedent("""\ return textwrap.dedent("""\
Lists the version of CPL, CPL CLI and all installed packages from pip. Lists the version of CPL, CPL CLI and all installed packages from pip.
usage: cpl version Usage: cpl version
""") """)
def run(self, args: list[str]): def run(self, args: list[str]):