Skip to content

Commit 0fdd4ea

Browse files
Bump github.com/olekukonko/tablewriter from 0.0.5 to 1.1.4 (#4781)
* Bump github.com/olekukonko/tablewriter from 0.0.5 to 1.1.4 Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter) from 0.0.5 to 1.1.4. - [Release notes](https://github.com/olekukonko/tablewriter/releases) - [Commits](olekukonko/tablewriter@v0.0.5...v1.1.4) --- updated-dependencies: - dependency-name: github.com/olekukonko/tablewriter dependency-version: 1.1.4 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix build errors after tablewriter bump to v1.1.4 Migrate from the removed v0.0.5 setter API (SetHeader, SetBorder, SetAlignment, etc.) to the new v1.1.4 configuration-driven API using Options, Configure, WithRendition, and WithHeader. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Daniel Graña <dangra@gmail.com>
1 parent 3803c1f commit 0fdd4ea

File tree

16 files changed

+160
-125
lines changed

16 files changed

+160
-125
lines changed

cmd/audit/lint.go

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"unicode"
1010

1111
"github.com/olekukonko/tablewriter"
12+
"github.com/olekukonko/tablewriter/tw"
1213
"github.com/spf13/cobra"
1314
"github.com/spf13/pflag"
1415
"github.com/superfly/flyctl/internal/command/root"
@@ -22,21 +23,22 @@ func newLintCmd() *cobra.Command {
2223
root := root.New()
2324
run := NewCheckRun(root)
2425

25-
table := tablewriter.NewWriter(os.Stdout)
26-
table.SetBorder(false)
27-
table.SetAutoWrapText(false)
28-
table.SetHeader([]string{"Path", "Check", "Failure Reason"})
26+
table := tablewriter.NewTable(os.Stdout,
27+
tablewriter.WithHeader([]string{"Path", "Check", "Failure Reason"}),
28+
tablewriter.WithRendition(tw.Rendition{
29+
Borders: tw.Border{Left: tw.Off, Right: tw.Off, Top: tw.Off, Bottom: tw.Off},
30+
}),
31+
)
32+
table.Configure(func(cfg *tablewriter.Config) {
33+
cfg.Row.Formatting.AutoWrap = tw.WrapNone
34+
})
2935

3036
errors := run.Run()
3137
for _, err := range errors {
32-
table.Append([]string{
33-
err.command,
34-
err.check,
35-
err.Error(),
36-
})
38+
table.Append(err.command, err.check, err.Error()) //nolint:errcheck
3739
}
3840

39-
table.Render()
41+
table.Render() //nolint:errcheck
4042

4143
fmt.Println()
4244
fmt.Printf("%d checks failed\n", len(errors))

cmd/audit/output.go

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"io"
88

99
"github.com/olekukonko/tablewriter"
10+
"github.com/olekukonko/tablewriter/tw"
1011
)
1112

1213
func newOutput(w io.Writer, format string) output {
@@ -25,23 +26,38 @@ type output interface {
2526
}
2627

2728
func NewTableOutput(w io.Writer) *tableOutput {
28-
t := tablewriter.NewWriter(w)
29-
t.SetBorder(false)
30-
t.SetAutoWrapText(false)
29+
t := tablewriter.NewTable(w,
30+
tablewriter.WithRendition(tw.Rendition{
31+
Borders: tw.Border{Left: tw.Off, Right: tw.Off, Top: tw.Off, Bottom: tw.Off},
32+
}),
33+
)
34+
t.Configure(func(cfg *tablewriter.Config) {
35+
cfg.Row.Formatting.AutoWrap = tw.WrapNone
36+
})
3137

3238
return &tableOutput{
33-
Table: t,
39+
table: t,
3440
}
3541
}
3642

3743
type tableOutput struct {
38-
*tablewriter.Table
44+
table *tablewriter.Table
3945
}
4046

41-
func (t *tableOutput) Flush() error {
42-
t.Render()
47+
func (t *tableOutput) SetHeader(header []string) {
48+
t.table.Options(tablewriter.WithHeader(header))
49+
}
50+
51+
func (t *tableOutput) Append(row []string) {
52+
args := make([]interface{}, len(row))
53+
for i, v := range row {
54+
args[i] = v
55+
}
56+
t.table.Append(args...) //nolint:errcheck
57+
}
4358

44-
return nil
59+
func (t *tableOutput) Flush() error {
60+
return t.table.Render()
4561
}
4662

4763
func NewCSVOutput(w io.Writer) *csvOutput {

go.mod

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ require (
5858
github.com/nats-io/nats.go v1.43.0
5959
github.com/novln/docker-parser v1.0.0
6060
github.com/oklog/ulid/v2 v2.1.0
61-
github.com/olekukonko/tablewriter v0.0.5
61+
github.com/olekukonko/tablewriter v1.1.4
6262
github.com/pelletier/go-toml/v2 v2.2.4
6363
github.com/pkg/errors v0.9.1
6464
github.com/pkg/sftp v1.13.9
@@ -106,11 +106,16 @@ require (
106106
github.com/aws/aws-sdk-go-v2/service/signin v1.0.9 // indirect
107107
github.com/bahlo/generic-list-go v0.2.0 // indirect
108108
github.com/buger/jsonparser v1.1.2 // indirect
109+
github.com/clipperhouse/displaywidth v0.10.0 // indirect
110+
github.com/clipperhouse/uax29/v2 v2.6.0 // indirect
109111
github.com/containerd/containerd v1.7.27 // indirect
110112
github.com/creack/pty v1.1.24 // indirect
111113
github.com/golang-jwt/jwt/v5 v5.3.0 // indirect
112114
github.com/google/cel-go v0.26.1 // indirect
113115
github.com/invopop/jsonschema v0.13.0 // indirect
116+
github.com/olekukonko/cat v0.0.0-20250911104152-50322a0618f6 // indirect
117+
github.com/olekukonko/errors v1.2.0 // indirect
118+
github.com/olekukonko/ll v0.1.6 // indirect
114119
github.com/quic-go/qpack v0.6.0 // indirect
115120
github.com/quic-go/quic-go v0.57.1 // indirect
116121
github.com/stoewer/go-strcase v1.2.0 // indirect
@@ -195,7 +200,7 @@ require (
195200
github.com/docker/go-metrics v0.0.1 // indirect
196201
github.com/elazarl/goproxy v1.7.2 // indirect
197202
github.com/emirpasic/gods v1.18.1 // indirect
198-
github.com/fatih/color v1.15.0 // indirect
203+
github.com/fatih/color v1.18.0 // indirect
199204
github.com/felixge/httpsnoop v1.0.4 // indirect
200205
github.com/gdamore/encoding v1.0.1 // indirect
201206
github.com/gdamore/tcell/v2 v2.8.0 // indirect
@@ -231,7 +236,7 @@ require (
231236
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
232237
github.com/mailru/easyjson v0.7.7 // indirect
233238
github.com/mark3labs/mcp-go v0.39.1
234-
github.com/mattn/go-runewidth v0.0.16 // indirect
239+
github.com/mattn/go-runewidth v0.0.19 // indirect
235240
github.com/mitchellh/go-homedir v1.1.0 // indirect
236241
github.com/mitchellh/ioprogress v0.0.0-20180201004757-6a23b12fa88e // indirect
237242
github.com/moby/docker-image-spec v1.3.1 // indirect

go.sum

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ github.com/chzyer/test v1.0.0 h1:p3BQDXSxOhOG0P9z6/hGnII4LGiEPOYBhs8asl/fC04=
191191
github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8=
192192
github.com/cli/safeexec v1.0.1 h1:e/C79PbXF4yYTN/wauC4tviMxEV13BwljGj0N9j+N00=
193193
github.com/cli/safeexec v1.0.1/go.mod h1:Z/D4tTN8Vs5gXYHDCbaM1S/anmEDnJb1iW0+EJ5zx3Q=
194+
github.com/clipperhouse/displaywidth v0.10.0 h1:GhBG8WuerxjFQQYeuZAeVTuyxuX+UraiZGD4HJQ3Y8g=
195+
github.com/clipperhouse/displaywidth v0.10.0/go.mod h1:XqJajYsaiEwkxOj4bowCTMcT1SgvHo9flfF3jQasdbs=
196+
github.com/clipperhouse/uax29/v2 v2.6.0 h1:z0cDbUV+aPASdFb2/ndFnS9ts/WNXgTNNGFoKXuhpos=
197+
github.com/clipperhouse/uax29/v2 v2.6.0/go.mod h1:Wn1g7MK6OoeDT0vL+Q0SQLDz/KpfsVRgg6W7ihQeh4g=
194198
github.com/cloudflare/circl v1.6.3 h1:9GPOhQGF9MCYUeXyMYlqTR6a5gTrgR/fBLXvUgtVcg8=
195199
github.com/cloudflare/circl v1.6.3/go.mod h1:2eXP6Qfat4O/Yhh8BznvKnJ+uzEoTQ6jVKJRn81BiS4=
196200
github.com/codahale/rfc6979 v0.0.0-20141003034818-6a90f24967eb h1:EDmT6Q9Zs+SbUoc7Ik9EfrFqcylYqgPZ9ANSbTAntnE=
@@ -277,8 +281,8 @@ github.com/elazarl/goproxy v1.7.2/go.mod h1:82vkLNir0ALaW14Rc399OTTjyNREgmdL2cVo
277281
github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc=
278282
github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ=
279283
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
280-
github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs=
281-
github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw=
284+
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
285+
github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
282286
github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
283287
github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
284288
github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
@@ -455,10 +459,10 @@ github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hd
455459
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
456460
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
457461
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
458-
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
459462
github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
460-
github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc=
461463
github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
464+
github.com/mattn/go-runewidth v0.0.19 h1:v++JhqYnZuu5jSKrk9RbgF5v4CGUjqRfBm05byFGLdw=
465+
github.com/mattn/go-runewidth v0.0.19/go.mod h1:XBkDxAl56ILZc9knddidhrOlY5R/pDhgLpndooCuJAs=
462466
github.com/mattn/go-zglob v0.0.6 h1:mP8RnmCgho4oaUYDIDn6GNxYk+qJGUs8fJLn+twYj2A=
463467
github.com/mattn/go-zglob v0.0.6/go.mod h1:MxxjyoXXnMxfIpxTK2GAkw1w8glPsQILx3N5wrKakiY=
464468
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
@@ -514,8 +518,14 @@ github.com/novln/docker-parser v1.0.0 h1:PjEBd9QnKixcWczNGyEdfUrP6GR0YUilAqG7Wks
514518
github.com/novln/docker-parser v1.0.0/go.mod h1:oCeM32fsoUwkwByB5wVjsrsVQySzPWkl3JdlTn1txpE=
515519
github.com/oklog/ulid/v2 v2.1.0 h1:+9lhoxAP56we25tyYETBBY1YLA2SaoLvUFgrP2miPJU=
516520
github.com/oklog/ulid/v2 v2.1.0/go.mod h1:rcEKHmBBKfef9DhnvX7y1HZBYxjXb0cP5ExxNsTT1QQ=
517-
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
518-
github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
521+
github.com/olekukonko/cat v0.0.0-20250911104152-50322a0618f6 h1:zrbMGy9YXpIeTnGj4EljqMiZsIcE09mmF8XsD5AYOJc=
522+
github.com/olekukonko/cat v0.0.0-20250911104152-50322a0618f6/go.mod h1:rEKTHC9roVVicUIfZK7DYrdIoM0EOr8mK1Hj5s3JjH0=
523+
github.com/olekukonko/errors v1.2.0 h1:10Zcn4GeV59t/EGqJc8fUjtFT/FuUh5bTMzZ1XwmCRo=
524+
github.com/olekukonko/errors v1.2.0/go.mod h1:ppzxA5jBKcO1vIpCXQ9ZqgDh8iwODz6OXIGKU8r5m4Y=
525+
github.com/olekukonko/ll v0.1.6 h1:lGVTHO+Qc4Qm+fce/2h2m5y9LvqaW+DCN7xW9hsU3uA=
526+
github.com/olekukonko/ll v0.1.6/go.mod h1:NVUmjBb/aCtUpjKk75BhWrOlARz3dqsM+OtszpY4o88=
527+
github.com/olekukonko/tablewriter v1.1.4 h1:ORUMI3dXbMnRlRggJX3+q7OzQFDdvgbN9nVWj1drm6I=
528+
github.com/olekukonko/tablewriter v1.1.4/go.mod h1:+kedxuyTtgoZLwif3P1Em4hARJs+mVnzKxmsCL/C5RY=
519529
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
520530
github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
521531
github.com/onsi/gomega v1.36.2 h1:koNYke6TVk6ZmnyHrCXba/T/MoLBXFjeC1PtvYgw0A8=

helpers/tablehelper.go

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,22 @@ import (
44
"io"
55

66
tablewriter "github.com/olekukonko/tablewriter"
7+
"github.com/olekukonko/tablewriter/tw"
78
)
89

910
func MakeSimpleTable(out io.Writer, headings []string) (table *tablewriter.Table) {
10-
newtable := tablewriter.NewWriter(out)
11-
// Future code to turn headers bold
12-
// headercolors := []tablewriter.Colors{}
13-
// for range headings {
14-
// headercolors = append(headercolors, tablewriter.Colors{tablewriter.Bold})
15-
// }
16-
newtable.SetHeader(headings)
17-
newtable.SetHeaderLine(true)
18-
newtable.SetBorder(false)
19-
newtable.SetAutoFormatHeaders(true)
20-
newtable.SetHeaderAlignment(tablewriter.ALIGN_LEFT)
21-
newtable.SetAlignment(tablewriter.ALIGN_LEFT)
22-
newtable.SetTablePadding(" ")
23-
newtable.SetCenterSeparator("*")
24-
newtable.SetRowSeparator("-")
25-
newtable.SetAutoWrapText(false)
11+
newtable := tablewriter.NewTable(out,
12+
tablewriter.WithHeader(headings),
13+
tablewriter.WithHeaderAlignment(tw.AlignLeft),
14+
tablewriter.WithRowAlignment(tw.AlignLeft),
15+
tablewriter.WithRendition(tw.Rendition{
16+
Borders: tw.Border{Left: tw.Off, Right: tw.Off, Top: tw.Off, Bottom: tw.Off},
17+
}),
18+
)
19+
newtable.Configure(func(cfg *tablewriter.Config) {
20+
cfg.Header.Formatting.AutoFormat = tw.On
21+
cfg.Row.Formatting.AutoWrap = tw.WrapNone
22+
})
2623

2724
return newtable
2825
}

internal/command/checks/list.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ func runAppCheckList(ctx context.Context) error {
4545

4646
fmt.Fprintf(out, "Health Checks for %s\n", appName)
4747
table := helpers.MakeSimpleTable(out, []string{"Name", "Status", "Machine", "Last Updated", "Output"})
48-
table.SetRowLine(true)
4948
for _, machine := range machines {
5049
sort.Slice(machine.Checks, func(i, j int) bool {
5150
return machine.Checks[i].Name < machine.Checks[j].Name
@@ -55,10 +54,10 @@ func runAppCheckList(ctx context.Context) error {
5554
if nameFilter != "" && nameFilter != check.Name {
5655
continue
5756
}
58-
table.Append([]string{check.Name, string(check.Status), machine.ID, format.RelativeTime(*check.UpdatedAt), check.Output})
57+
table.Append(check.Name, string(check.Status), machine.ID, format.RelativeTime(*check.UpdatedAt), check.Output) //nolint:errcheck
5958
}
6059
}
61-
table.Render()
60+
table.Render() //nolint:errcheck
6261

6362
return nil
6463
}

internal/command/deploy/machines_deploymachinesapp.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,10 +1301,10 @@ func (md *machineDeployment) warnAboutIncorrectListenAddress(ctx context.Context
13011301
}
13021302
}
13031303
if len(addresses) > 0 {
1304-
table.Append([]string{proc.Command, strings.Join(addresses, ", ")})
1304+
table.Append(proc.Command, strings.Join(addresses, ", ")) //nolint:errcheck
13051305
}
13061306
}
1307-
table.Render()
1307+
table.Render() //nolint:errcheck
13081308
fmt.Fprintf(md.io.ErrOut, "\n")
13091309
}
13101310

internal/command/incidents/hosts/list.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,10 @@ func runList(ctx context.Context) (err error) {
6161
if appHostIssuesCount > 0 {
6262
fmt.Fprintf(out, "Host Issues count: %d\n\n", appHostIssuesCount)
6363
table := helpers.MakeSimpleTable(out, []string{"Id", "Message", "Started At", "Last Updated"})
64-
table.SetRowLine(true)
6564
for _, appHostIssue := range appHostIssues {
66-
table.Append([]string{appHostIssue.InternalId, appHostIssue.Message, appHostIssue.CreatedAt.String(), appHostIssue.UpdatedAt.String()})
65+
table.Append(appHostIssue.InternalId, appHostIssue.Message, appHostIssue.CreatedAt.String(), appHostIssue.UpdatedAt.String()) //nolint:errcheck
6766
}
68-
table.Render()
67+
table.Render() //nolint:errcheck
6968
} else {
7069
fmt.Fprintf(out, "There are no active host issues\n")
7170
}

internal/command/incidents/incidents.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,14 @@ func runIncidentsList(ctx context.Context) error {
6666
if incidentCount > 0 {
6767
fmt.Fprintf(out, "Incidents count: %d\n\n", incidentCount)
6868
table := helpers.MakeSimpleTable(out, []string{"Id", "Name", "Status", "Components", "Started At", "Last Updated"})
69-
table.SetRowLine(true)
7069
for _, incident := range statuspageIncidents.Incidents {
7170
var components []string
7271
for _, component := range incident.Components {
7372
components = append(components, component.Name)
7473
}
75-
table.Append([]string{incident.ID, incident.Name, incident.Status, strings.Join(components, ", "), incident.StartedAt, incident.UpdatedAt})
74+
table.Append(incident.ID, incident.Name, incident.Status, strings.Join(components, ", "), incident.StartedAt, incident.UpdatedAt) //nolint:errcheck
7675
}
77-
table.Render()
76+
table.Render() //nolint:errcheck
7877
} else {
7978
fmt.Fprintf(out, "There are no active incidents\n")
8079
}

internal/command/orgs/show.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,14 @@ func runShow(ctx context.Context) (err error) {
7373

7474
fmt.Fprintln(&buf, colorize.Bold("Organization Members"))
7575

76-
membertable := tablewriter.NewWriter(&buf)
77-
membertable.SetHeader([]string{"Name", "Email", "Role"})
76+
membertable := tablewriter.NewTable(&buf,
77+
tablewriter.WithHeader([]string{"Name", "Email", "Role"}),
78+
)
7879

7980
for _, m := range org.Members.Edges {
80-
membertable.Append([]string{m.Node.Name, m.Node.Email, m.Role})
81+
membertable.Append(m.Node.Name, m.Node.Email, m.Role) //nolint:errcheck
8182
}
82-
membertable.Render()
83+
membertable.Render() //nolint:errcheck
8384

8485
buf.WriteTo(io.Out)
8586

0 commit comments

Comments
 (0)