feat(cli): add column truncation controls (#1838)

- drop low-priority columns when tables exceed terminal width
- truncate optional columns to fit remaining width
- add --no-trunc flag to disable truncation
- compute column widths using unicode display width

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
fanyang
2026-01-28 14:50:14 +08:00
committed by GitHub
parent 518d26b25f
commit 977e502150
3 changed files with 258 additions and 9 deletions
Generated
+2
View File
@@ -2240,6 +2240,7 @@ dependencies = [
"sys-locale",
"tabled",
"tempfile",
"terminal_size",
"thiserror 1.0.63",
"thunk-rs",
"tikv-jemalloc-ctl",
@@ -2258,6 +2259,7 @@ dependencies = [
"tracing",
"tracing-subscriber",
"tun-easytier",
"unicode-width 0.1.11",
"url",
"uuid",
"version-compare",