Skip to content

Respect terminal width for CLI table outputs#34

Merged
sjmiller609 merged 1 commit intomainfrom
terminal-width
Feb 11, 2026
Merged

Respect terminal width for CLI table outputs#34
sjmiller609 merged 1 commit intomainfrom
terminal-width

Conversation

@sjmiller609
Copy link
Contributor

@sjmiller609 sjmiller609 commented Feb 11, 2026

before / after

image

Note

Low Risk
Output-only changes to CLI table formatting; main risk is regressions in alignment/truncation on unusual terminals or non-TTY output.

Overview
Updates CLI table rendering to be terminal-width aware: TableWriter now detects terminal width, computes final column widths, and truncates cells with ellipses based on a per-table TruncOrder priority.

Replaces several hand-formatted fmt.Printf/manual substring truncation tables in device, ps, ingress list, and resources allocations with the new table behavior (including minor type-to-string conversions for numeric columns).

Written by Cursor Bugbot for commit 1fe51d8. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Copy link
Contributor

@hiroTamada hiroTamada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@sjmiller609 sjmiller609 merged commit 4aa0df2 into main Feb 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments