Files
neko-run-controller-std/neko_run_controller_std/neko/interfaces.py
2025-01-04 11:55:47 +02:00

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__