clue2app-cli 0.2.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,33 @@
1
+ """Interactive TUI module for Clue2App CLI.
2
+
3
+ Provides k9s-like interactive terminal UI with support for both
4
+ Textual (modern) and ncurses (traditional) backends.
5
+ """
6
+
7
+ from typing import Optional
8
+
9
+
10
+ def run_tui(backend: str = 'auto', screen: str = 'apps') -> None:
11
+ """Run the interactive TUI.
12
+
13
+ Args:
14
+ backend: TUI backend to use ('textual', 'curses', or 'auto')
15
+ screen: Initial screen to show ('apps' or 'projects')
16
+ """
17
+ if backend == 'auto':
18
+ try:
19
+ import textual
20
+ backend = 'textual'
21
+ except ImportError:
22
+ backend = 'curses'
23
+
24
+ if backend == 'textual':
25
+ from .textual_app import Clue2AppTUI
26
+ app = Clue2AppTUI(initial_screen=screen)
27
+ app.run()
28
+ else:
29
+ from .curses_app import run_curses_tui
30
+ run_curses_tui(initial_screen=screen)
31
+
32
+
33
+ __all__ = ['run_tui']