23 lines
713 B
Python
23 lines
713 B
Python
"""
|
|
PluginLoader — discovers and registers action plugins at startup.
|
|
|
|
Etap 2: loads only hardcoded builtins (all enabled).
|
|
Etap 5: will scan plugins/custom/ and cross-reference with the plugins DB table.
|
|
"""
|
|
|
|
from app.plugins.base import BaseAction
|
|
from app.plugins.builtin.common.ping import PingAction
|
|
from app.plugins.builtin.ssh.get_timedatectl import GetTimedatectlAction
|
|
from app.plugins.builtin.ssh.ssh_command import SSHCommandAction
|
|
from app.plugins.registry import action_registry
|
|
|
|
_BUILTIN_ACTIONS: list[BaseAction] = [
|
|
PingAction(),
|
|
SSHCommandAction(),
|
|
GetTimedatectlAction(),
|
|
]
|
|
|
|
|
|
def load_plugins() -> None:
|
|
for action in _BUILTIN_ACTIONS:
|
|
action_registry.register(action)
|