2022.6.5 - CLI Erweiterung #68

Merged
edraft merged 2 commits from 2022.6.5 into 2022.6 2022-05-22 18:34:45 +02:00
15 changed files with 15 additions and 15 deletions
Showing only changes of commit 24ab6a51c1 - Show all commits

View File

@ -46,7 +46,7 @@ class AddService(CommandABC):
}, indent=2)) }, indent=2))
file.close() file.close()
def run(self, args: list[str]): def execute(self, args: list[str]):
""" """
Entry point of command Entry point of command
:param args: :param args:

View File

@ -22,7 +22,7 @@ class BuildService(CommandABC):
Usage: cpl build Usage: cpl build
""") """)
def run(self, args: list[str]): def execute(self, args: list[str]):
""" """
Entry point of command Entry point of command
:param args: :param args:

View File

@ -22,7 +22,7 @@ class CustomScriptService(CommandABC):
def help_message(self) -> str: def help_message(self) -> str:
return '' return ''
def run(self, args: list[str]): def execute(self, args: list[str]):
cmd = self._config.get_configuration('ACTIVE_EXECUTABLE') cmd = self._config.get_configuration('ACTIVE_EXECUTABLE')
for script in self._workspace.scripts: for script in self._workspace.scripts:

View File

@ -169,7 +169,7 @@ class GenerateService(CommandABC):
spinner_foreground_color=ForegroundColorEnum.cyan spinner_foreground_color=ForegroundColorEnum.cyan
) )
def run(self, args: list[str]): def execute(self, args: list[str]):
""" """
Entry point of command Entry point of command
:param args: :param args:

View File

@ -24,7 +24,7 @@ class HelpService(CommandABC):
Usage: cpl help Usage: cpl help
""") """)
def run(self, args: list[str]): def execute(self, args: list[str]):
""" """
Entry point of command Entry point of command
:param args: :param args:

View File

@ -184,7 +184,7 @@ class InstallService(CommandABC):
Pip.reset_executable() Pip.reset_executable()
def run(self, args: list[str]): def execute(self, args: list[str]):
""" """
Entry point of command Entry point of command
:param args: :param args:

View File

@ -242,7 +242,7 @@ class NewService(CommandABC):
except Exception as e: except Exception as e:
Console.error('Could not create project', str(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 Entry point of command
:param args: :param args:

View File

@ -22,7 +22,7 @@ class PublishService(CommandABC):
Usage: cpl publish Usage: cpl publish
""") """)
def run(self, args: list[str]): def execute(self, args: list[str]):
""" """
Entry point of command Entry point of command
:param args: :param args:

View File

@ -67,7 +67,7 @@ class RemoveService(CommandABC):
self._create_file(path, ws_dict) self._create_file(path, ws_dict)
def run(self, args: list[str]): def execute(self, args: list[str]):
""" """
Entry point of command Entry point of command
:param args: :param args:

View File

@ -22,7 +22,7 @@ class StartService(CommandABC):
Usage: cpl start Usage: cpl start
""") """)
def run(self, args: list[str]): def execute(self, args: list[str]):
""" """
Entry point of command Entry point of command
:param args: :param args:

View File

@ -49,7 +49,7 @@ class UninstallService(CommandABC):
def _wait(self, t: int, *args, source: str = None, stdout=None, stderr=None): def _wait(self, t: int, *args, source: str = None, stdout=None, stderr=None):
time.sleep(t) time.sleep(t)
def run(self, args: list[str]): def execute(self, args: list[str]):
""" """
Entry point of command Entry point of command
:param args: :param args:

View File

@ -156,7 +156,7 @@ class UpdateService(CommandABC):
project.write(json.dumps(config, indent=2)) project.write(json.dumps(config, indent=2))
project.close() project.close()
def run(self, args: list[str]): def execute(self, args: list[str]):
""" """
Entry point of command Entry point of command
:param args: :param args:

View File

@ -26,7 +26,7 @@ class VersionService(CommandABC):
Usage: cpl version Usage: cpl version
""") """)
def run(self, args: list[str]): def execute(self, args: list[str]):
""" """
Entry point of command Entry point of command
:param args: :param args:

View File

@ -11,6 +11,6 @@ class GenerateArgument(ArgumentExecutableABC):
self._config = config self._config = config
self._env = env self._env = env
def run(self, args: list[str]): def execute(self, args: list[str]):
Console.error('Generate:') Console.error('Generate:')
Console.write_line(args, self._env.environment_name) Console.write_line(args, self._env.environment_name)

View File

@ -7,5 +7,5 @@ class InstallArgument(ArgumentExecutableABC):
def __init__(self): def __init__(self):
ArgumentExecutableABC.__init__(self) ArgumentExecutableABC.__init__(self)
def run(self, args: list[str]): def execute(self, args: list[str]):
Console.write_line('Install:', args) Console.write_line('Install:', args)