Commit b003810
Skip column truncation when stdout is piped (non-TTY)
When stdout is not a terminal (e.g. piped to grep, awk, cat), output
full column values without truncation. This follows the standard CLI
pattern used by docker ps, kubectl get, etc.
- Table column truncation in PrintTableNoPad now checks IsTerminal
- truncateURL also skips truncation in non-TTY mode
- TTY behavior (truncate to terminal width) is unchanged
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 6d54518 commit b003810
2 files changed
+19
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
3256 | 3257 | | |
3257 | 3258 | | |
3258 | 3259 | | |
| 3260 | + | |
| 3261 | + | |
| 3262 | + | |
3259 | 3263 | | |
3260 | 3264 | | |
3261 | 3265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
24 | 30 | | |
25 | | - | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| |||
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
93 | 103 | | |
94 | 104 | | |
95 | 105 | | |
| |||
0 commit comments