Added more getters to plugin repository

This commit is contained in:
Pünkösd Marcell 2021-04-14 17:43:57 +02:00
parent 97986d78e5
commit 2d9b771d14
1 changed files with 6 additions and 0 deletions

View File

@ -60,6 +60,12 @@ class PluginRepository:
self._logger.info(f"Loaded plugin: {plugin}")
self._logger.debug(f"Plugin {plugin} loaded the following commands: {', '.join(compilers.keys())}")
def get_loaded_plugins(self) -> List[str]:
return list(self._loaded_plugins.keys())
def get_loaded_compilers(self) -> List[str]:
return list(self._command_compilers.keys())
def get_compiler(self, command: str) -> AbstractCommandCompiler:
return self._command_compilers[command]