refactor: remove Panel border from CLI output for cleaner copy-paste
This commit is contained in:
parent
33930d1265
commit
9d304d8a41
@ -10,7 +10,6 @@ import sys
|
|||||||
import typer
|
import typer
|
||||||
from rich.console import Console
|
from rich.console import Console
|
||||||
from rich.markdown import Markdown
|
from rich.markdown import Markdown
|
||||||
from rich.panel import Panel
|
|
||||||
from rich.table import Table
|
from rich.table import Table
|
||||||
from rich.text import Text
|
from rich.text import Text
|
||||||
|
|
||||||
@ -102,15 +101,8 @@ def _print_agent_response(response: str, render_markdown: bool) -> None:
|
|||||||
content = response or ""
|
content = response or ""
|
||||||
body = Markdown(content) if render_markdown else Text(content)
|
body = Markdown(content) if render_markdown else Text(content)
|
||||||
console.print()
|
console.print()
|
||||||
console.print(
|
console.print(f"[cyan]{__logo__} nanobot[/cyan]")
|
||||||
Panel(
|
console.print(body)
|
||||||
body,
|
|
||||||
title=f"{__logo__} nanobot",
|
|
||||||
title_align="left",
|
|
||||||
border_style="cyan",
|
|
||||||
padding=(0, 1),
|
|
||||||
)
|
|
||||||
)
|
|
||||||
console.print()
|
console.print()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user