-
Notifications
You must be signed in to change notification settings - Fork 14
Display formatted table when run with gh models eval
#76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
gh models eval
gh models eval
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the output formatting for the gh models eval
command by replacing plain text output with formatted tables. The changes improve readability by using colored table output to display test results and evaluation details.
- Replaces plain text output with formatted tables using the
tableprinter
package - Adds color coding (green for passed, red for failed) to improve visual feedback
- Includes table headers and structured layout for evaluation results
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
cmd/eval/eval.go | Implements table formatting with color support for test results and evaluation output |
cmd/eval/eval_test.go | Updates test assertions to accommodate the new table-formatted output structure |
} | ||
|
||
err := printer.Render() | ||
if err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Silent error handling by returning early without logging or informing the user that table rendering failed. Consider logging the error or falling back to plain text output.
Copilot uses AI. Check for mistakes.
} | ||
|
||
err = table.Render() | ||
if err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Silent error handling by returning early without logging or informing the user that table rendering failed. Consider logging the error or falling back to plain text output.
Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.