From 24ab6a51c18c7069110e964d097a6d6619c22a8a Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sun, 22 May 2022 18:33:07 +0200 Subject: [PATCH] Refactored executable arguments --- src/cpl_cli/command/add_service.py | 2 +- src/cpl_cli/command/build_service.py | 2 +- src/cpl_cli/command/custom_script_service.py | 2 +- src/cpl_cli/command/generate_service.py | 2 +- src/cpl_cli/command/help_service.py | 2 +- src/cpl_cli/command/install_service.py | 2 +- src/cpl_cli/command/new_service.py | 2 +- src/cpl_cli/command/publish_service.py | 2 +- src/cpl_cli/command/remove_service.py | 2 +- src/cpl_cli/command/start_service.py | 2 +- src/cpl_cli/command/uninstall_service.py | 2 +- src/cpl_cli/command/update_service.py | 2 +- src/cpl_cli/command/version_service.py | 2 +- .../custom/general/src/general/arguments/generate_argument.py | 2 +- .../custom/general/src/general/arguments/install_argument.py | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/cpl_cli/command/add_service.py b/src/cpl_cli/command/add_service.py index f2dc15f3..e3223d85 100644 --- a/src/cpl_cli/command/add_service.py +++ b/src/cpl_cli/command/add_service.py @@ -46,7 +46,7 @@ class AddService(CommandABC): }, indent=2)) file.close() - def run(self, args: list[str]): + def execute(self, args: list[str]): """ Entry point of command :param args: diff --git a/src/cpl_cli/command/build_service.py b/src/cpl_cli/command/build_service.py index 5fe1bc72..a9c764b6 100644 --- a/src/cpl_cli/command/build_service.py +++ b/src/cpl_cli/command/build_service.py @@ -22,7 +22,7 @@ class BuildService(CommandABC): Usage: cpl build """) - def run(self, args: list[str]): + def execute(self, args: list[str]): """ Entry point of command :param args: diff --git a/src/cpl_cli/command/custom_script_service.py b/src/cpl_cli/command/custom_script_service.py index 3e8f2dbc..4ed3d91f 100644 --- a/src/cpl_cli/command/custom_script_service.py +++ b/src/cpl_cli/command/custom_script_service.py @@ -22,7 +22,7 @@ class CustomScriptService(CommandABC): def help_message(self) -> str: return '' - def run(self, args: list[str]): + def execute(self, args: list[str]): cmd = self._config.get_configuration('ACTIVE_EXECUTABLE') for script in self._workspace.scripts: diff --git a/src/cpl_cli/command/generate_service.py b/src/cpl_cli/command/generate_service.py index 4ec3dc86..846e6cee 100644 --- a/src/cpl_cli/command/generate_service.py +++ b/src/cpl_cli/command/generate_service.py @@ -169,7 +169,7 @@ class GenerateService(CommandABC): spinner_foreground_color=ForegroundColorEnum.cyan ) - def run(self, args: list[str]): + def execute(self, args: list[str]): """ Entry point of command :param args: diff --git a/src/cpl_cli/command/help_service.py b/src/cpl_cli/command/help_service.py index 51a4d02b..d22e0e98 100644 --- a/src/cpl_cli/command/help_service.py +++ b/src/cpl_cli/command/help_service.py @@ -24,7 +24,7 @@ class HelpService(CommandABC): Usage: cpl help """) - def run(self, args: list[str]): + def execute(self, args: list[str]): """ Entry point of command :param args: diff --git a/src/cpl_cli/command/install_service.py b/src/cpl_cli/command/install_service.py index ac8184b4..873d4e72 100644 --- a/src/cpl_cli/command/install_service.py +++ b/src/cpl_cli/command/install_service.py @@ -184,7 +184,7 @@ class InstallService(CommandABC): Pip.reset_executable() - def run(self, args: list[str]): + def execute(self, args: list[str]): """ Entry point of command :param args: diff --git a/src/cpl_cli/command/new_service.py b/src/cpl_cli/command/new_service.py index da23c198..ea1fa940 100644 --- a/src/cpl_cli/command/new_service.py +++ b/src/cpl_cli/command/new_service.py @@ -242,7 +242,7 @@ class NewService(CommandABC): except Exception as e: Console.error('Could not create project', str(e)) - def run(self, args: list[str]): + def execute(self, args: list[str]): """ Entry point of command :param args: diff --git a/src/cpl_cli/command/publish_service.py b/src/cpl_cli/command/publish_service.py index 7a6403a4..f455e16c 100644 --- a/src/cpl_cli/command/publish_service.py +++ b/src/cpl_cli/command/publish_service.py @@ -22,7 +22,7 @@ class PublishService(CommandABC): Usage: cpl publish """) - def run(self, args: list[str]): + def execute(self, args: list[str]): """ Entry point of command :param args: diff --git a/src/cpl_cli/command/remove_service.py b/src/cpl_cli/command/remove_service.py index 6dc20a25..7d7dbe09 100644 --- a/src/cpl_cli/command/remove_service.py +++ b/src/cpl_cli/command/remove_service.py @@ -67,7 +67,7 @@ class RemoveService(CommandABC): self._create_file(path, ws_dict) - def run(self, args: list[str]): + def execute(self, args: list[str]): """ Entry point of command :param args: diff --git a/src/cpl_cli/command/start_service.py b/src/cpl_cli/command/start_service.py index 48b853b4..e638dcd7 100644 --- a/src/cpl_cli/command/start_service.py +++ b/src/cpl_cli/command/start_service.py @@ -22,7 +22,7 @@ class StartService(CommandABC): Usage: cpl start """) - def run(self, args: list[str]): + def execute(self, args: list[str]): """ Entry point of command :param args: diff --git a/src/cpl_cli/command/uninstall_service.py b/src/cpl_cli/command/uninstall_service.py index 940154ad..c5c132c4 100644 --- a/src/cpl_cli/command/uninstall_service.py +++ b/src/cpl_cli/command/uninstall_service.py @@ -49,7 +49,7 @@ class UninstallService(CommandABC): def _wait(self, t: int, *args, source: str = None, stdout=None, stderr=None): time.sleep(t) - def run(self, args: list[str]): + def execute(self, args: list[str]): """ Entry point of command :param args: diff --git a/src/cpl_cli/command/update_service.py b/src/cpl_cli/command/update_service.py index a454312b..b667ea58 100644 --- a/src/cpl_cli/command/update_service.py +++ b/src/cpl_cli/command/update_service.py @@ -156,7 +156,7 @@ class UpdateService(CommandABC): project.write(json.dumps(config, indent=2)) project.close() - def run(self, args: list[str]): + def execute(self, args: list[str]): """ Entry point of command :param args: diff --git a/src/cpl_cli/command/version_service.py b/src/cpl_cli/command/version_service.py index f68c9b16..5e93660f 100644 --- a/src/cpl_cli/command/version_service.py +++ b/src/cpl_cli/command/version_service.py @@ -26,7 +26,7 @@ class VersionService(CommandABC): Usage: cpl version """) - def run(self, args: list[str]): + def execute(self, args: list[str]): """ Entry point of command :param args: diff --git a/src/tests/custom/general/src/general/arguments/generate_argument.py b/src/tests/custom/general/src/general/arguments/generate_argument.py index 58a35467..c66c7738 100644 --- a/src/tests/custom/general/src/general/arguments/generate_argument.py +++ b/src/tests/custom/general/src/general/arguments/generate_argument.py @@ -11,6 +11,6 @@ class GenerateArgument(ArgumentExecutableABC): self._config = config self._env = env - def run(self, args: list[str]): + def execute(self, args: list[str]): Console.error('Generate:') Console.write_line(args, self._env.environment_name) diff --git a/src/tests/custom/general/src/general/arguments/install_argument.py b/src/tests/custom/general/src/general/arguments/install_argument.py index aca00937..ec53cf5a 100644 --- a/src/tests/custom/general/src/general/arguments/install_argument.py +++ b/src/tests/custom/general/src/general/arguments/install_argument.py @@ -7,5 +7,5 @@ class InstallArgument(ArgumentExecutableABC): def __init__(self): ArgumentExecutableABC.__init__(self) - def run(self, args: list[str]): + def execute(self, args: list[str]): Console.write_line('Install:', args)