fix: Implement --no-mouse flag for TUI command
- Pass mouse parameter from CLI args to run_tui() - Update run_tui() to accept and forward mouse flag to app.run() - Resolves CodeRabbit review comment
This commit is contained in:
parent
2db9d1ee03
commit
253dce89fe
2 changed files with 8 additions and 3 deletions
|
|
@ -43,7 +43,7 @@ Perfect for managing Cognee from the terminal or SSH sessions!
|
||||||
|
|
||||||
# Import and run TUI
|
# Import and run TUI
|
||||||
from cognee.cli.tui import run_tui
|
from cognee.cli.tui import run_tui
|
||||||
run_tui()
|
run_tui(mouse=not args.no_mouse)
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
fmt.note("\nTUI closed by user")
|
fmt.note("\nTUI closed by user")
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,11 @@ class HelpScreen(Screen):
|
||||||
|
|
||||||
|
|
||||||
def run_tui():
|
def run_tui():
|
||||||
"""Entry point to run the TUI application"""
|
"""Entry point to run the TUI application
|
||||||
|
|
||||||
|
|
||||||
|
Args:
|
||||||
|
mouse: Enable mouse support (default: True)
|
||||||
|
"""
|
||||||
app = CogneeTUI()
|
app = CogneeTUI()
|
||||||
app.run()
|
app.run(mouse=mouse)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue