Improved command handler
This commit is contained in:
parent
226123a81f
commit
ce1f057f71
@ -1,12 +1,15 @@
|
||||
from cpl.application.application_runtime_abc import ApplicationRuntimeABC
|
||||
from cpl.dependency_injection.service_abc import ServiceABC
|
||||
from cpl_cli.command import Command
|
||||
|
||||
|
||||
class CommandHandler(ServiceABC):
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self, runtime: ApplicationRuntimeABC):
|
||||
ServiceABC.__init__(self)
|
||||
|
||||
self._runtime = runtime
|
||||
|
||||
self._commands: list[Command] = []
|
||||
|
||||
def add_command(self, cmd: Command):
|
||||
|
Loading…
Reference in New Issue
Block a user