2021.4.7 #28
@ -29,9 +29,9 @@ class AddService(CommandABC):
|
||||
def help_message(self) -> str:
|
||||
return textwrap.dedent("""\
|
||||
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
|
||||
target-project: Name of the project to be referenced
|
||||
""")
|
||||
|
@ -19,7 +19,7 @@ class BuildService(CommandABC):
|
||||
def help_message(self) -> str:
|
||||
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
|
||||
usage: cpl build
|
||||
Usage: cpl build
|
||||
""")
|
||||
|
||||
def run(self, args: list[str]):
|
||||
|
@ -60,13 +60,13 @@ class GenerateService(CommandABC):
|
||||
def help_message(self) -> str:
|
||||
return textwrap.dedent("""\
|
||||
Generate a file based on schematic.
|
||||
usage: cpl generate <schematic> <name>
|
||||
Usage: cpl generate <schematic> <name>
|
||||
|
||||
arguments:
|
||||
Arguments:
|
||||
schematic: The schematic to generate.
|
||||
name: The name of the generated file
|
||||
|
||||
schematics:
|
||||
Schematics:
|
||||
abc
|
||||
class
|
||||
enum
|
||||
|
@ -23,7 +23,7 @@ class HelpService(CommandABC):
|
||||
def help_message(self) -> str:
|
||||
return textwrap.dedent("""\
|
||||
Lists available command and their short descriptions.
|
||||
usage: cpl help <command>
|
||||
Usage: cpl help <command>
|
||||
|
||||
Arguments:
|
||||
command The command to display the help message for
|
||||
|
@ -44,7 +44,7 @@ class InstallService(CommandABC):
|
||||
def help_message(self) -> str:
|
||||
return textwrap.dedent("""\
|
||||
Installs given package via pip
|
||||
usage: cpl install <package>
|
||||
Usage: cpl install <package>
|
||||
|
||||
Arguments:
|
||||
package The package to install
|
||||
|
@ -51,7 +51,7 @@ class NewService(CommandABC):
|
||||
def help_message(self) -> str:
|
||||
return textwrap.dedent("""\
|
||||
Generates a workspace and initial project or add a project to workspace.
|
||||
usage: cpl new <type> <name>
|
||||
Usage: cpl new <type> <name>
|
||||
|
||||
Arguments:
|
||||
type The project type of the initial project
|
||||
|
@ -19,7 +19,7 @@ class PublishService(CommandABC):
|
||||
def help_message(self) -> str:
|
||||
return textwrap.dedent("""\
|
||||
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]):
|
||||
|
@ -30,7 +30,7 @@ class RemoveService(CommandABC):
|
||||
def help_message(self) -> str:
|
||||
return textwrap.dedent("""\
|
||||
Removes a project from workspace.
|
||||
usage: cpl add <project>
|
||||
Usage: cpl remove <project>
|
||||
|
||||
Arguments:
|
||||
project The name of the project to delete
|
||||
|
@ -19,7 +19,7 @@ class StartService(CommandABC):
|
||||
def help_message(self) -> str:
|
||||
return textwrap.dedent("""\
|
||||
Starts your application, restarting on file changes.
|
||||
usage: cpl start
|
||||
Usage: cpl start
|
||||
""")
|
||||
|
||||
def run(self, args: list[str]):
|
||||
|
@ -36,7 +36,7 @@ class UninstallService(CommandABC):
|
||||
def help_message(self) -> str:
|
||||
return textwrap.dedent("""\
|
||||
Uninstalls given package via pip
|
||||
usage: cpl uninstall <package>
|
||||
Usage: cpl uninstall <package>
|
||||
|
||||
Arguments:
|
||||
package The package to uninstall
|
||||
|
@ -43,7 +43,7 @@ class UpdateService(CommandABC):
|
||||
def help_message(self) -> str:
|
||||
return textwrap.dedent("""\
|
||||
Updates the CPL and project dependencies.
|
||||
usage: cpl update
|
||||
Usage: cpl update
|
||||
""")
|
||||
|
||||
def _collect_project_dependencies(self) -> list[tuple]:
|
||||
|
@ -23,7 +23,7 @@ class VersionService(CommandABC):
|
||||
def help_message(self) -> str:
|
||||
return textwrap.dedent("""\
|
||||
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]):
|
||||
|
Loading…
Reference in New Issue
Block a user