dev
This commit is contained in:
19
neko_run_controller_std/neko/interfaces.py
Normal file
19
neko_run_controller_std/neko/interfaces.py
Normal 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__
|
||||
Reference in New Issue
Block a user