Skip to content

Commit 6213bb5

Browse files
stackit-pipelinerenovate-botbahkauv70
authored
fix(deps): update module github.com/spf13/cobra to v1.9.1 (#602)
* fix(deps): update module github.com/spf13/cobra to v1.9.1 * fix deprecation warning --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Rüdiger Schmitz <[email protected]>
1 parent afb9986 commit 6213bb5

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/jedib0t/go-pretty/v6 v6.6.6
1313
github.com/lmittmann/tint v1.0.7
1414
github.com/mattn/go-colorable v0.1.14
15-
github.com/spf13/cobra v1.8.1
15+
github.com/spf13/cobra v1.9.1
1616
github.com/spf13/pflag v1.0.6
1717
github.com/spf13/viper v1.19.0
1818
github.com/stackitcloud/stackit-sdk-go/core v0.15.1
@@ -54,7 +54,7 @@ require (
5454
)
5555

5656
require (
57-
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
57+
github.com/cpuguy83/go-md2man/v2 v2.0.6 // indirect
5858
github.com/danieljoos/wincred v1.2.2 // indirect
5959
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
6060
github.com/fsnotify/fsnotify v1.7.0 // indirect

go.sum

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
al.essio.dev/pkg/shellescape v1.5.1 h1:86HrALUujYS/h+GtqoB26SBEdkWfmMI6FubjXlsXyho=
22
al.essio.dev/pkg/shellescape v1.5.1/go.mod h1:6sIqp7X2P6mThCQ7twERpZTuigpr6KbZWtls1U8I890=
3-
github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4=
4-
github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
3+
github.com/cpuguy83/go-md2man/v2 v2.0.6 h1:XJtiaUW6dEEqVuZiMTn1ldk455QWwEIsMIJlo5vtkx0=
4+
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
55
github.com/danieljoos/wincred v1.2.2 h1:774zMFJrqaeYCK2W57BgAem/MLi6mtSE47MB6BOJ0i0=
66
github.com/danieljoos/wincred v1.2.2/go.mod h1:w7w4Utbrz8lqeMbDAK0lkNJUv5sAOkFi7nd/ogr0Uh8=
77
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
@@ -111,9 +111,8 @@ github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8=
111111
github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY=
112112
github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0=
113113
github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo=
114-
github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM=
115-
github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y=
116-
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
114+
github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo=
115+
github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0=
117116
github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=
118117
github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
119118
github.com/spf13/viper v1.19.0 h1:RWq5SEjt8o25SROyN3z2OrDB9l7RPd3lwTWU8EcEdcI=

internal/pkg/print/print_test.go

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ func TestOutputf(t *testing.T) {
5757
t.Run(tt.description, func(t *testing.T) {
5858
var buf bytes.Buffer
5959
cmd := &cobra.Command{}
60-
cmd.SetOutput(&buf)
60+
cmd.SetOut(&buf)
61+
cmd.SetErr(&buf)
6162
p := &Printer{
6263
Cmd: cmd,
6364
Verbosity: tt.verbosity,
@@ -128,7 +129,8 @@ func TestOutputln(t *testing.T) {
128129
t.Run(tt.description, func(t *testing.T) {
129130
var buf bytes.Buffer
130131
cmd := &cobra.Command{}
131-
cmd.SetOutput(&buf)
132+
cmd.SetOut(&buf)
133+
cmd.SetErr(&buf)
132134
p := &Printer{
133135
Cmd: cmd,
134136
Verbosity: tt.verbosity,
@@ -192,7 +194,8 @@ func TestPagerDisplay(t *testing.T) {
192194
t.Run(tt.description, func(t *testing.T) {
193195
var buf bytes.Buffer
194196
cmd := &cobra.Command{}
195-
cmd.SetOutput(&buf)
197+
cmd.SetOut(&buf)
198+
cmd.SetErr(&buf)
196199
p := &Printer{
197200
Cmd: cmd,
198201
Verbosity: tt.verbosity,
@@ -291,7 +294,8 @@ func TestDebug(t *testing.T) {
291294
t.Run(tt.description, func(t *testing.T) {
292295
var buf bytes.Buffer
293296
cmd := &cobra.Command{}
294-
cmd.SetOutput(&buf)
297+
cmd.SetOut(&buf)
298+
cmd.SetErr(&buf)
295299
logger := slog.New(slog.NewTextHandler(&buf, &slog.HandlerOptions{AddSource: true, Level: slog.LevelDebug}))
296300
slog.SetDefault(logger)
297301
p := &Printer{
@@ -354,7 +358,8 @@ func TestInfo(t *testing.T) {
354358
t.Run(tt.description, func(t *testing.T) {
355359
var buf bytes.Buffer
356360
cmd := &cobra.Command{}
357-
cmd.SetOutput(&buf)
361+
cmd.SetOut(&buf)
362+
cmd.SetErr(&buf)
358363
p := &Printer{
359364
Cmd: cmd,
360365
Verbosity: tt.verbosity,
@@ -413,7 +418,8 @@ func TestWarn(t *testing.T) {
413418
t.Run(tt.description, func(t *testing.T) {
414419
var buf bytes.Buffer
415420
cmd := &cobra.Command{}
416-
cmd.SetOutput(&buf)
421+
cmd.SetOut(&buf)
422+
cmd.SetErr(&buf)
417423
p := &Printer{
418424
Cmd: cmd,
419425
Verbosity: tt.verbosity,
@@ -472,7 +478,8 @@ func TestError(t *testing.T) {
472478
t.Run(tt.description, func(t *testing.T) {
473479
var buf bytes.Buffer
474480
cmd := &cobra.Command{}
475-
cmd.SetOutput(&buf)
481+
cmd.SetOut(&buf)
482+
cmd.SetErr(&buf)
476483
p := &Printer{
477484
Cmd: cmd,
478485
Verbosity: tt.verbosity,

0 commit comments

Comments
 (0)