Skip to content

chore: update tablewriter to v1.1.4#136

Merged
tekenstam merged 2 commits intomasterfrom
deps/tablewriter-v1
Mar 22, 2026
Merged

chore: update tablewriter to v1.1.4#136
tekenstam merged 2 commits intomasterfrom
deps/tablewriter-v1

Conversation

@tekenstam
Copy link
Member

Summary

Migrates cmd/cli/get.go from the deprecated tablewriter v0.0.5 API to v1.1.4.

API changes

v0.0.5 v1.1.4
tablewriter.NewWriter(w) tablewriter.NewTable(w, opts...)
Individual Set*() calls Configure() callback + tw.Rendition for borders/separators
table.SetHeader(headers) table.Header(headers)
table.AppendBulk(data) Per-row table.Append(row) with error handling
table.Render() (no error) table.Render() returns error
tablewriter.ALIGN_LEFT tw.AlignLeft

Output format preserved

  • No borders (left/right/top/bottom off)
  • No header separator line
  • No column separators
  • Left-aligned headers and data rows
  • Tab-padded cells (\t left padding, no right padding)

Test plan

  • go build ./... passes
  • go vet ./... passes
  • go test -v ./... passes

This is included in the planned v0.7.0 release.

🤖 Generated with Claude Code

Migrate cmd/cli/get.go from the deprecated v0.0.5 API to v1.1.4:
- NewWriter() → NewTable() with WithRenderer(renderer.NewBlueprint(...))
- Individual Set*() calls → Configure() + tw.Rendition for border/separator config
- SetHeader() → Header()
- AppendBulk() → per-row Append() with error handling
- Render() → Render() with error handling
- ALIGN_LEFT constant → tw.AlignLeft
- Tab padding via CellPadding.Global with Overwrite: true

Output format is preserved: no borders, tab-separated columns,
left-aligned headers and data, no header separator line.

Signed-off-by: Todd Ekenstam <todd_ekenstam@intuit.com>
@tekenstam tekenstam requested review from a team as code owners March 22, 2026 03:58
Signed-off-by: Todd Ekenstam <todd_ekenstam@intuit.com>
@tekenstam tekenstam merged commit db6f588 into master Mar 22, 2026
5 checks passed
@tekenstam tekenstam deleted the deps/tablewriter-v1 branch March 22, 2026 04:19
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 0% with 35 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.37%. Comparing base (f87e68c) to head (e512449).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
cmd/cli/get.go 0.00% 35 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #136      +/-   ##
==========================================
- Coverage   60.06%   58.37%   -1.70%     
==========================================
  Files          12       12              
  Lines         586      603      +17     
==========================================
  Hits          352      352              
- Misses        215      232      +17     
  Partials       19       19              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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