Commit cbaec5e
feat(audit): add color support to audit table output
Added colorized output to make audit, make outdated, and all audit
commands for improved visual distinction of tool statuses.
Changes:
1. Added CLI_AUDIT_COLOR environment variable (default: 1/enabled)
2. Added ANSI color codes to cli_audit/render.py:
- GREEN: Up-to-date tools
- YELLOW: Outdated installed versions
- BOLD_GREEN: Newer available versions
- BLUE: Not installed tools
3. Updated render_table() to apply colors based on status
4. Added colorize() helper function
5. Updated Makefile targets to enable colors:
- audit, audit-offline, outdated
- audit-%, audit-offline-%
Color scheme:
- UP-TO-DATE: green installed, green latest
- OUTDATED: yellow installed, bold green latest
- NOT INSTALLED: blue installed, blue latest
- CONFLICT: yellow installed, bold green latest
Disable with: CLI_AUDIT_COLOR=0 make audit
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent e5c086c commit cbaec5e
2 files changed
Lines changed: 54 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
15 | 24 | | |
16 | 25 | | |
17 | 26 | | |
| |||
47 | 56 | | |
48 | 57 | | |
49 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
50 | 74 | | |
51 | 75 | | |
52 | 76 | | |
| |||
92 | 116 | | |
93 | 117 | | |
94 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
95 | 133 | | |
96 | 134 | | |
97 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
98 | 143 | | |
99 | 144 | | |
100 | 145 | | |
| |||
113 | 158 | | |
114 | 159 | | |
115 | 160 | | |
116 | | - | |
117 | | - | |
| 161 | + | |
| 162 | + | |
118 | 163 | | |
119 | | - | |
| 164 | + | |
120 | 165 | | |
121 | 166 | | |
122 | 167 | | |
| |||
0 commit comments