aboutsummaryrefslogtreecommitdiff
path: root/app/backends/__init__.py
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-08-25 18:10:08 -0400
committerhistoria <historiavg@proton.me>2026-08-25 18:10:08 -0400
commit4b49797b4d57c2d2cf63472636622a7a6280a38e (patch)
treee3687c734de5d6159cdad288e025057ed6cd3a16 /app/backends/__init__.py
parentbcac6c42eaf9e004716d72960bddefb1db68a93c (diff)
downloadtts-audiobook-generator-4b49797b4d57c2d2cf63472636622a7a6280a38e.tar.gz
feat: no console drop when uninstalling backends
Diffstat (limited to 'app/backends/__init__.py')
-rw-r--r--app/backends/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/backends/__init__.py b/app/backends/__init__.py
index 83f9866..63f0709 100644
--- a/app/backends/__init__.py
+++ b/app/backends/__init__.py
@@ -147,13 +147,16 @@ class BackendInfo:
SETUP_SCREEN runs the setup wizard on an already-open curses screen
(the hub's), returning 0 on completion and non-zero when aborted; the
- hub calls it as one screen of its own ``tui.Wizard`` stack.
+ hub calls it as one screen of its own ``tui.Wizard`` stack. UNINSTALL
+ removes the backend (stops its servers, pip-uninstalls, deletes its
+ files); the hub runs it inside the task view, calling it with optional
+ ``emit``/``cancel`` keywords (cancel honored between phases only).
"""
key: str
label: str
detect: Callable[[], BackendStatus]
setup_screen: Callable[[object], int]
- uninstall: Callable[[], int] = lambda: 0
+ uninstall: Callable[..., int] = lambda *args, **kwargs: 0
REGISTRY: List[BackendInfo] = []