fix: Use Markdown widget and fix docstring formatting
- Replace Static with Markdown for proper help text rendering - Remove extra blank lines from run_tui docstring - Add period to docstring summary for PEP 257 compliance - Fix closing quotes indentation
This commit is contained in:
parent
65c552a35f
commit
ceaa015c91
1 changed files with 4 additions and 5 deletions
|
|
@ -103,7 +103,7 @@ class HelpScreen(Screen):
|
||||||
def compose(self) -> ComposeResult:
|
def compose(self) -> ComposeResult:
|
||||||
yield Header()
|
yield Header()
|
||||||
with VerticalScroll():
|
with VerticalScroll():
|
||||||
yield Static(self.help_text)
|
yield Markdown(self.help_text)
|
||||||
yield Button("Close (Esc)", id="close", variant="primary")
|
yield Button("Close (Esc)", id="close", variant="primary")
|
||||||
yield Footer()
|
yield Footer()
|
||||||
|
|
||||||
|
|
@ -117,11 +117,10 @@ class HelpScreen(Screen):
|
||||||
|
|
||||||
|
|
||||||
def run_tui(mouse: bool = True) -> None:
|
def run_tui(mouse: bool = True) -> None:
|
||||||
"""Entry point to run the TUI application
|
"""Entry point to run the TUI application.
|
||||||
|
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
mouse: Enable mouse support (default: True)
|
mouse: Enable mouse support (default: True)
|
||||||
"""
|
"""
|
||||||
app = CogneeTUI()
|
app = CogneeTUI()
|
||||||
app.run(mouse=mouse)
|
app.run(mouse=mouse)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue