Skip to content

Commit 861b20d

Browse files
dependabot[bot]Julian Koberg2403905
authored
chore(deps): bump github.com/olekukonko/tablewriter from 0.0.5 to 1.0.9 (#11570)
* chore(deps): bump github.com/olekukonko/tablewriter from 0.0.5 to 1.0.9 Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter) from 0.0.5 to 1.0.9. - [Commits](olekukonko/tablewriter@v0.0.5...v1.0.9) --- updated-dependencies: - dependency-name: github.com/olekukonko/tablewriter dependency-version: 1.0.9 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix: adjust to tablewriter 1.0.9 (AI-powered) Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com> * update to NewTable * bring back a Footer * fix the tests --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Julian Koberg <julian.koberg@kiteworks.com> Co-authored-by: Roman Perekhod <rperekhod@owncloud.com>
1 parent c873528 commit 861b20d

File tree

110 files changed

+29790
-1828
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+29790
-1828
lines changed

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ require (
5959
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
6060
github.com/nats-io/nats-server/v2 v2.11.6
6161
github.com/nats-io/nats.go v1.43.0
62-
github.com/olekukonko/tablewriter v0.0.5
62+
github.com/olekukonko/tablewriter v1.0.9
6363
github.com/onsi/ginkgo v1.16.5
6464
github.com/onsi/ginkgo/v2 v2.23.4
6565
github.com/onsi/gomega v1.37.0
@@ -266,6 +266,8 @@ require (
266266
github.com/nats-io/nuid v1.0.1 // indirect
267267
github.com/nxadm/tail v1.4.8 // indirect
268268
github.com/oklog/run v1.1.0 // indirect
269+
github.com/olekukonko/errors v1.1.0 // indirect
270+
github.com/olekukonko/ll v0.0.9 // indirect
269271
github.com/opentracing/opentracing-go v1.2.0 // indirect
270272
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c // indirect
271273
github.com/pablodz/inotifywaitgo v0.0.7 // indirect

go.sum

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,8 +845,13 @@ github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+
845845
github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA=
846846
github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU=
847847
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
848-
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
848+
github.com/olekukonko/errors v1.1.0 h1:RNuGIh15QdDenh+hNvKrJkmxxjV4hcS50Db478Ou5sM=
849+
github.com/olekukonko/errors v1.1.0/go.mod h1:ppzxA5jBKcO1vIpCXQ9ZqgDh8iwODz6OXIGKU8r5m4Y=
850+
github.com/olekukonko/ll v0.0.9 h1:Y+1YqDfVkqMWuEQMclsF9HUR5+a82+dxJuL1HHSRpxI=
851+
github.com/olekukonko/ll v0.0.9/go.mod h1:En+sEW0JNETl26+K8eZ6/W4UQ7CYSrrgg/EdIYT2H8g=
849852
github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
853+
github.com/olekukonko/tablewriter v1.0.9 h1:XGwRsYLC2bY7bNd93Dk51bcPZksWZmLYuaTHR0FqfL8=
854+
github.com/olekukonko/tablewriter v1.0.9/go.mod h1:5c+EBPeSqvXnLLgkm9isDdzR3wjfBkHR9Nhfp3NWrzo=
850855
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
851856
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
852857
github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=

ocis/pkg/command/benchmark.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"strings"
1515
"time"
1616

17-
tw "github.com/olekukonko/tablewriter"
17+
"github.com/olekukonko/tablewriter"
1818
"github.com/owncloud/ocis/v2/ocis-pkg/config"
1919
"github.com/owncloud/ocis/v2/ocis-pkg/version"
2020
"github.com/owncloud/ocis/v2/ocis/pkg/register"
@@ -403,11 +403,8 @@ func benchmark(iterations int, path string) error {
403403
fmt.Printf("Iterations: %d\n", iterations)
404404
fmt.Println("")
405405

406-
table := tw.NewWriter(os.Stdout)
407-
table.SetHeader([]string{"Test", "Iterations", "dur/it", "total"})
408-
table.SetAutoFormatHeaders(false)
409-
table.SetColumnAlignment([]int{tw.ALIGN_LEFT, tw.ALIGN_RIGHT, tw.ALIGN_RIGHT, tw.ALIGN_RIGHT})
410-
table.SetAutoMergeCellsByColumnIndex([]int{2, 3})
406+
table := tablewriter.NewTable(os.Stdout)
407+
table.Header("Test", "Iterations", "dur/it", "total")
411408
for _, t := range []string{"lockedfile open(wo,c,t) close", "stat", "fopen(wo,t) write close", "fopen(ro) close", "fopen(ro) read close", "xattr-set", "xattr-get"} {
412409
start := time.Now()
413410
err := tests[t]()

ocis/pkg/command/migrate.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
collaboration "github.com/cs3org/go-cs3apis/cs3/sharing/collaboration/v1beta1"
1414
provider "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
1515
"github.com/mitchellh/mapstructure"
16-
tw "github.com/olekukonko/tablewriter"
16+
"github.com/olekukonko/tablewriter"
1717
"github.com/owncloud/reva/v2/pkg/publicshare"
1818
publicregistry "github.com/owncloud/reva/v2/pkg/publicshare/manager/registry"
1919
"github.com/owncloud/reva/v2/pkg/rgrpc/todo/pool"
@@ -284,9 +284,8 @@ func ListDecomposedfsMigrations(cfg *config.Config) *cli.Command {
284284
}
285285
sort.Strings(migrations)
286286

287-
table := tw.NewWriter(os.Stdout)
288-
table.SetHeader([]string{"Migration", "State", "Message"})
289-
table.SetAutoFormatHeaders(false)
287+
table := tablewriter.NewTable(os.Stdout)
288+
table.Header("Migration", "State", "Message")
290289
for _, migration := range migrations {
291290
table.Append([]string{migration, migrationStates[migration].State, migrationStates[migration].Message})
292291
}

ocis/pkg/command/version.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"os"
66

7-
tw "github.com/olekukonko/tablewriter"
7+
"github.com/olekukonko/tablewriter"
88
"github.com/urfave/cli/v2"
99
mreg "go-micro.dev/v4/registry"
1010

@@ -62,9 +62,8 @@ func VersionCommand(cfg *config.Config) *cli.Command {
6262
return nil
6363
}
6464

65-
table := tw.NewWriter(os.Stdout)
66-
table.SetHeader([]string{"Version", "Address", "Id"})
67-
table.SetAutoFormatHeaders(false)
65+
table := tablewriter.NewTable(os.Stdout)
66+
table.Header("Version", "Address", "Id")
6867
for _, s := range services {
6968
for _, n := range s.Nodes {
7069
table.Append([]string{s.Version, n.Address, n.Id})

ocis/pkg/runtime/service/service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,8 @@ func (s *Service) generateRunSet(cfg *ociscfg.Config) map[string]struct{} {
489489
// List running processes for the Service Controller.
490490
func (s *Service) List(_ struct{}, reply *string) error {
491491
tableString := &strings.Builder{}
492-
table := tablewriter.NewWriter(tableString)
493-
table.SetHeader([]string{"Service"})
492+
table := tablewriter.NewTable(tableString)
493+
table.Header("Service")
494494

495495
s.mu.Lock()
496496
names := []string{}

services/app-provider/pkg/command/version.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"fmt"
55
"os"
66

7+
"github.com/olekukonko/tablewriter"
78
"github.com/owncloud/ocis/v2/ocis-pkg/registry"
89
"github.com/owncloud/ocis/v2/ocis-pkg/version"
910

10-
tw "github.com/olekukonko/tablewriter"
1111
"github.com/owncloud/ocis/v2/services/app-provider/pkg/config"
1212
"github.com/urfave/cli/v2"
1313
)
@@ -35,9 +35,8 @@ func Version(cfg *config.Config) *cli.Command {
3535
return nil
3636
}
3737

38-
table := tw.NewWriter(os.Stdout)
39-
table.SetHeader([]string{"Version", "Address", "Id"})
40-
table.SetAutoFormatHeaders(false)
38+
table := tablewriter.NewTable(os.Stdout)
39+
table.Header("Version", "Address", "Id")
4140
for _, s := range services {
4241
for _, n := range s.Nodes {
4342
table.Append([]string{s.Version, n.Address, n.Id})

services/app-registry/pkg/command/version.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"fmt"
55
"os"
66

7+
"github.com/olekukonko/tablewriter"
78
"github.com/owncloud/ocis/v2/ocis-pkg/registry"
89
"github.com/owncloud/ocis/v2/ocis-pkg/version"
910

10-
tw "github.com/olekukonko/tablewriter"
1111
"github.com/owncloud/ocis/v2/services/app-registry/pkg/config"
1212
"github.com/urfave/cli/v2"
1313
)
@@ -35,9 +35,8 @@ func Version(cfg *config.Config) *cli.Command {
3535
return nil
3636
}
3737

38-
table := tw.NewWriter(os.Stdout)
39-
table.SetHeader([]string{"Version", "Address", "Id"})
40-
table.SetAutoFormatHeaders(false)
38+
table := tablewriter.NewTable(os.Stdout)
39+
table.Header("Version", "Address", "Id")
4140
for _, s := range services {
4241
for _, n := range s.Nodes {
4342
table.Append([]string{s.Version, n.Address, n.Id})

services/auth-app/pkg/command/version.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"fmt"
55
"os"
66

7+
"github.com/olekukonko/tablewriter"
78
"github.com/owncloud/ocis/v2/ocis-pkg/registry"
89
"github.com/owncloud/ocis/v2/ocis-pkg/version"
910

10-
tw "github.com/olekukonko/tablewriter"
1111
"github.com/owncloud/ocis/v2/services/auth-app/pkg/config"
1212
"github.com/urfave/cli/v2"
1313
)
@@ -35,9 +35,8 @@ func Version(cfg *config.Config) *cli.Command {
3535
return nil
3636
}
3737

38-
table := tw.NewWriter(os.Stdout)
39-
table.SetHeader([]string{"Version", "Address", "Id"})
40-
table.SetAutoFormatHeaders(false)
38+
table := tablewriter.NewTable(os.Stdout)
39+
table.Header("Version", "Address", "Id")
4140
for _, s := range services {
4241
for _, n := range s.Nodes {
4342
table.Append([]string{s.Version, n.Address, n.Id})

services/auth-basic/pkg/command/version.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"fmt"
55
"os"
66

7+
"github.com/olekukonko/tablewriter"
78
"github.com/owncloud/ocis/v2/ocis-pkg/registry"
89
"github.com/owncloud/ocis/v2/ocis-pkg/version"
910

10-
tw "github.com/olekukonko/tablewriter"
1111
"github.com/owncloud/ocis/v2/services/auth-basic/pkg/config"
1212
"github.com/urfave/cli/v2"
1313
)
@@ -35,9 +35,8 @@ func Version(cfg *config.Config) *cli.Command {
3535
return nil
3636
}
3737

38-
table := tw.NewWriter(os.Stdout)
39-
table.SetHeader([]string{"Version", "Address", "Id"})
40-
table.SetAutoFormatHeaders(false)
38+
table := tablewriter.NewTable(os.Stdout)
39+
table.Header("Version", "Address", "Id")
4140
for _, s := range services {
4241
for _, n := range s.Nodes {
4342
table.Append([]string{s.Version, n.Address, n.Id})

0 commit comments

Comments
 (0)