Added basic skeleton
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-04-08 23:52:26 +02:00
parent 43f80a79c1
commit 769ee0aeca
7 changed files with 244 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
from typing import Dict
from abc import ABC, abstractmethod
class AbstractCommand(ABC):
@abstractmethod
def execute(self):
pass
@abstractmethod
def describe(self) -> dict:
pass
class AbstractCommandCompiler(ABC):
@abstractmethod
def compile(self, *args, **kwargs) -> AbstractCommand:
pass
class AbstractPlugin(ABC):
plugin_name = ""
@abstractmethod
def load_compilers(self) -> Dict[str, AbstractCommandCompiler]:
pass
@abstractmethod
def close(self):
pass