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
+2
View File
@@ -160,6 +160,8 @@ x25519-dalek = "2.0"
# for cli
tabled = "0.16"
humansize = "2.1.3"
terminal_size = "0.4"
unicode-width = "0.1"
base64 = "0.22"