File tree Expand file tree Collapse file tree 3 files changed +20
-14
lines changed Expand file tree Collapse file tree 3 files changed +20
-14
lines changed Original file line number Diff line number Diff 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
5656require (
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
Original file line number Diff line number Diff line change 11al.essio.dev/pkg/shellescape v1.5.1 h1:86HrALUujYS/h+GtqoB26SBEdkWfmMI6FubjXlsXyho =
22al.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 =
55github.com/danieljoos/wincred v1.2.2 h1:774zMFJrqaeYCK2W57BgAem/MLi6mtSE47MB6BOJ0i0 =
66github.com/danieljoos/wincred v1.2.2 /go.mod h1:w7w4Utbrz8lqeMbDAK0lkNJUv5sAOkFi7nd/ogr0Uh8 =
77github.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=
111111github.com/spf13/afero v1.11.0 /go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY =
112112github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0 =
113113github.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 =
117116github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o =
118117github.com/spf13/pflag v1.0.6 /go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg =
119118github.com/spf13/viper v1.19.0 h1:RWq5SEjt8o25SROyN3z2OrDB9l7RPd3lwTWU8EcEdcI =
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments