Decouple friendly tool descriptions via registry

This commit is contained in:
trojanhorse47
2025-10-30 17:32:52 +01:00
parent 46fac8bbac
commit 765fc0ac72
5 changed files with 45 additions and 28 deletions

View File

@@ -0,0 +1,9 @@
# Registro popolato da tutti i file Toolkit presenti all'avvio.
ACTION_DESCRIPTIONS: dict[str, str] = {}
def register_friendly_actions(actions: dict[str, str]):
"""
Aggiunge le descrizioni di un Toolkit al registro globale.
"""
global ACTION_DESCRIPTIONS
ACTION_DESCRIPTIONS.update(actions)