Refactor table rendering to use consistent console.RenderTable formatting#92
Merged
Refactor table rendering to use consistent console.RenderTable formatting#92
Conversation
…ting Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [copilot] consistent table rendering
Refactor table rendering to use consistent console.RenderTable formatting
Aug 18, 2025
pelikhan
approved these changes
Aug 18, 2025
pelikhan
added a commit
that referenced
this pull request
Sep 6, 2025
* Add --no-emit flag and Agent Cook workflow for generating agentic workflows (#92) * Initial plan * Add --no-emit flag and agent-cook workflow Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Address PR feedback: Remove write permissions, use XML tags for specifications, add code blocks in PR template, and reference instructions Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Update XML formatting and strengthen safe-outputs guidance Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Add turn count extraction and display to logs command (#91) * Initial plan * Add turn count extraction and display to logs command Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Fix Codex turn counting pattern matching for exec and tool commands * Format and lint code according to project standards Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com> --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
15 tasks
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.
The GitHub CLI extension gh-aw was using manual table formatting with fixed-width columns and manual separators in its CLI commands, which looked inconsistent compared to GitHub CLI's professional appearance. This PR refactors the table rendering to use the existing
console.RenderTablesystem that provides GitHub CLI-style formatting with TTY-aware styling, dynamic column sizing, and professional headers.Changes Made
Before (Manual formatting)
After (Professional table rendering)
Technical Implementation
listAgenticEnginesfunction (lines 160-164) that used fixed-widthprintfstatements withconsole.TableConfigstructureStatusWorkflowsfunction (lines 1102-1103) with similar professional renderingThe implementation uses the existing
console.RenderTablefunction withTableConfigthat includes:Testing
gh run listThe table rendering now provides a professional appearance consistent with GitHub CLI standards while preserving all existing functionality.
Fixes #91.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
api.contoso.com/tmp/go-build3083132726/b270/cli.test -test.testlogfile=/tmp/go-build3083132726/b270/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true(dns block)/tmp/go-build2112566358/b270/cli.test -test.testlogfile=/tmp/go-build2112566358/b270/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true(dns block)/tmp/go-build446760869/b001/cli.test -test.testlogfile=/tmp/go-build446760869/b001/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.