refactor: Format CLI listings as markdown tables#327
Merged
Conversation
ig-semantic-release-bot bot
pushed a commit
that referenced
this pull request
Dec 10, 2025
## [0.87.0](v0.86.3...v0.87.0) (2025-12-10) ### 🚀 Features * Add conversations list command ([#331](#331)) ([e30eede](e30eede)), closes [#330](#330) * Add max retries configuration for MCP servers ([171444e](171444e)) ### ♻️ Code Refactoring * Format CLI listings as markdown tables ([#327](#327)) ([4418122](4418122)), closes [#311](#311) * Rename GitHub App to Github Action ([fcfdc98](fcfdc98))
|
🎉 This PR is included in version 0.87.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Converts plain text output for
list-agents,show-agent, andlist-mcpcommands to formatted markdown tables. Uses glamour library for terminal rendering. Improves readability with status icons and structured data presentation.Summary of Changes:
cmd/agents.go: Replaced plain text listings with markdown tables for bothlistAgentsandshowAgentfunctionscmd/mcp.go: Converted MCP server listing to markdown format with improved table structurerenderMarkdownfunction using the glamour library for terminal renderinginternal/shortcuts/custom.go: Added markdown detection to handle the new output format properlyThe refactoring maintains backward compatibility by falling back to raw markdown if rendering fails.
Benefits:
Closes #311