This commit is contained in:
hhh
2025-01-04 11:55:47 +02:00
commit 3eb13a369b
7 changed files with 112 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
from abc import ABC, abstractmethod
from .types import LogsHandler
from typing import Type
class RunControllerHandlersInterface(ABC):
@staticmethod
@abstractmethod
def add_logs_handler(handler: Type[LogsHandler]):
"""
When creating CommandRunner, every LogsHandler passed here will be initialized
with this new CommandRunner passed in it
:param handler: Implementation class of LogsHandler
:return:
"""
__all__ = [RunControllerHandlersInterface]
__replacements__ = __all__