2021.4.1 #11

Merged
edraft merged 172 commits from 2021.04.01 into 2021.04 2021-03-21 20:04:24 +01:00
Showing only changes of commit ce1f057f71 - Show all commits

View File

@ -1,12 +1,15 @@
from cpl.application.application_runtime_abc import ApplicationRuntimeABC
from cpl.dependency_injection.service_abc import ServiceABC from cpl.dependency_injection.service_abc import ServiceABC
from cpl_cli.command import Command from cpl_cli.command import Command
class CommandHandler(ServiceABC): class CommandHandler(ServiceABC):
def __init__(self): def __init__(self, runtime: ApplicationRuntimeABC):
ServiceABC.__init__(self) ServiceABC.__init__(self)
self._runtime = runtime
self._commands: list[Command] = [] self._commands: list[Command] = []
def add_command(self, cmd: Command): def add_command(self, cmd: Command):