20 lines
537 B
Python
20 lines
537 B
Python
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__
|