You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace olekukonko/tablewriter with text/tabwriter and apply Kubernetes CLI
runtime patterns
Drop external tablewriter dependency in favor of Go's built-in text/tabwriter
package to reduce dependencies and improve maintainability. Implementation now
follows Kubernetes CLI runtime patterns for consistent formatting and robust
error handling.
Changes:
- Replace tablewriter.NewWriter() with centralized NewTabWriter() factory
function using Kubernetes-style configuration constants
- Add defensive programming with bounds checking and content sanitization in
table operations
- Implement newline/carriage return truncation with "..." indicators
- Add tab character escaping in cell content
- Update all table display functions to use new factory pattern
- Remove olekukonko/tablewriter and related dependencies from go.mod
- Update test expectations to match new table output format
- Fix import statements and remove unused tabwriter imports
All tests pass (61/61) with the new implementation following established
open source patterns.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Adrian Reber <areber@redhat.com>
0 commit comments