Enhance list command with visual separators

Add row borders and detail item separators to improve readability of the
rich table output. Each agent row now displays borders across all columns,
and detail items are separated by short horizontal bars.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-01-13 11:03:33 -08:00
commit ea4d949799

View file

@ -265,7 +265,7 @@ def list_agents() -> None:
return
console = Console()
table = Table(show_header=True, header_style="bold cyan")
table = Table(show_header=True, header_style="bold cyan", show_lines=True)
table.add_column("Label", style="green", no_wrap=False)
table.add_column("Command", style="yellow", no_wrap=False, overflow="fold")
table.add_column("Details", style="dim", no_wrap=False, overflow="fold")
@ -299,7 +299,9 @@ def list_agents() -> None:
calendar_str = ', '.join(f"{k}={v}" for k, v in calendar.items())
details.append(f"StartCalendarInterval: {calendar_str}")
details_str = '\n'.join(details) if details else "-"
# Join details with a short horizontal separator
separator = "" * 8
details_str = f'\n{separator}\n'.join(details) if details else "-"
table.add_row(label, command, details_str)
except Exception as e: