feat(audit): improve audit subcommand output with table format and colors#200
feat(audit): improve audit subcommand output with table format and colors#200
audit subcommand output with table format and colors#200Conversation
…colors Replace plain text output with a gh CLI-style table formatter: - TTY: aligned table with colored action labels and terminal-width-aware command truncation - Non-TTY: tab-separated values for piping - Timestamps displayed in local time instead of UTC - Newlines in commands escaped to maintain one-line-per-entry - Sort order changed to ascending (newest last) for natural terminal reading Co-Authored-By: Claude Opus 4.6 <[email protected]>
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the user experience of the Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #200 +/- ##
==========================================
- Coverage 89.26% 89.23% -0.03%
==========================================
Files 47 48 +1
Lines 9046 9209 +163
==========================================
+ Hits 8075 8218 +143
- Misses 971 991 +20
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Byte-level string slicing could panic when truncating a command containing multi-byte UTF-8 characters (e.g., CJK, emoji) at a position that falls mid-character. Use `is_char_boundary` to find safe slice points. Also update the doc comment on `AuditReader::read()` to reflect the new ascending sort order, and update docs/cli/audit.md to document the new table/TSV output format and local timestamps. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Tab characters in command strings would corrupt TSV column parsing since tab is the column delimiter. Escape \t along with \n and \r. Rename the function from escape_newlines to escape_control_chars to reflect the broader scope. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Why
runok audittext output is hard to readWhat
auditsubcommand output