Merged
Conversation
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>
Signed-off-by: Todd Ekenstam <todd_ekenstam@intuit.com>
Codecov Report❌ Patch coverage is
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. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrates
cmd/cli/get.gofrom the deprecatedtablewriter v0.0.5API tov1.1.4.API changes
tablewriter.NewWriter(w)tablewriter.NewTable(w, opts...)Set*()callsConfigure()callback +tw.Renditionfor borders/separatorstable.SetHeader(headers)table.Header(headers)table.AppendBulk(data)table.Append(row)with error handlingtable.Render()(no error)table.Render()returns errortablewriter.ALIGN_LEFTtw.AlignLeftOutput format preserved
\tleft padding, no right padding)Test plan
go build ./...passesgo vet ./...passesgo test -v ./...passesThis is included in the planned v0.7.0 release.
🤖 Generated with Claude Code