Skip to content

Commit e6b3a30

Browse files
Merge pull request #138 from smallstep/dependabot/go_modules/go.step.sm/crypto-0.51.2
Bump go.step.sm/crypto from 0.51.1 to 0.51.2
2 parents 231d7f8 + f02849a commit e6b3a30

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module go.step.sm/cli-utils
22

3-
go 1.21
3+
go 1.22
44

55
require (
66
github.com/chzyer/readline v1.5.1
@@ -11,7 +11,7 @@ require (
1111
github.com/smallstep/assert v0.0.0-20200723003110-82e2b9b3b262
1212
github.com/stretchr/testify v1.9.0
1313
github.com/urfave/cli v1.22.15
14-
go.step.sm/crypto v0.51.1
14+
go.step.sm/crypto v0.51.2
1515
golang.org/x/net v0.28.0
1616
golang.org/x/sys v0.24.0
1717
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8
6060
github.com/urfave/cli v1.22.15 h1:nuqt+pdC/KqswQKhETJjo7pvn/k4xMUxgW6liI7XpnM=
6161
github.com/urfave/cli v1.22.15/go.mod h1:wSan1hmo5zeyLGBjRJbzRTNk8gwoYa2B9n4q9dmRIc0=
6262
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
63-
go.step.sm/crypto v0.51.1 h1:ktUg/2hetEMiBAqgz502ktZDGoDoGrcHFg3XpkmkvvA=
64-
go.step.sm/crypto v0.51.1/go.mod h1:PdrhttNU/tG9/YsVd4fdlysBN+UV503p0o2irFZQlAw=
63+
go.step.sm/crypto v0.51.2 h1:5EiCGIMg7IvQTGmJrwRosbXeprtT80OhoS/PJarg60o=
64+
go.step.sm/crypto v0.51.2/go.mod h1:QK7czLjN2k+uqVp5CHXxJbhc70kVRSP+0CQF3zsR5M0=
6565
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
6666
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
6767
golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=

usage/renderer.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"unicode"
1212

1313
"github.com/mgutz/ansi"
14+
1415
md "go.step.sm/cli-utils/pkg/blackfriday"
1516
)
1617

@@ -191,36 +192,36 @@ func (r *Renderer) RenderNode(w io.Writer, node *md.Node, entering bool) md.Walk
191192
r.write(node.Literal)
192193
} else {
193194
s := strings.ReplaceAll(string(node.Literal), "\n", "\n"+strings.Repeat(" ", r.depth))
194-
r.printf(s)
195+
r.printf(s) //nolint:govet // allow non-constant
195196
}
196197
case md.Heading:
197198
if entering {
198-
r.printf(ansi.ColorCode("default+bh"))
199+
r.printf(ansi.ColorCode("default+bh")) //nolint:govet // allow non-constant
199200
} else {
200201
r.printf(ansi.Reset)
201202
r.printf("\n")
202203
}
203204
case md.Link:
204205
if entering {
205-
r.printf(ansi.ColorCode("default+b"))
206+
r.printf(ansi.ColorCode("default+b")) //nolint:govet // allow non-constant
206207
//r.printf("\033[2m") // Dim
207208
} else {
208209
r.printf(ansi.Reset)
209210
}
210211
case md.Strong:
211212
if entering {
212-
r.printf(ansi.ColorCode("default+bh"))
213+
r.printf(ansi.ColorCode("default+bh")) //nolint:govet // allow non-constant
213214
} else {
214215
r.printf(ansi.Reset)
215216
}
216217
case md.Emph:
217218
if entering {
218-
r.printf(ansi.ColorCode("default+u"))
219+
r.printf(ansi.ColorCode("default+u")) //nolint:govet // allow non-constant
219220
} else {
220221
r.printf(ansi.Reset)
221222
}
222223
case md.Code:
223-
r.printf(ansi.ColorCode("default+u"))
224+
r.printf(ansi.ColorCode("default+u")) //nolint:govet // allow non-constant
224225
r.write(node.Literal)
225226
r.printf(ansi.Reset)
226227
case md.List:
@@ -331,7 +332,7 @@ func (r *Renderer) RenderNode(w io.Writer, node *md.Node, entering bool) md.Walk
331332
for i := 0; i < len(parts); i++ {
332333
parts[i] = "\xff" + ansi.ColorCode("default+bh") + "\xff" + parts[i] + "\xff" + ansi.Reset + "\xff"
333334
}
334-
r.printf(strings.Join(parts, "\t") + "\t\n")
335+
r.printf(strings.Join(parts, "\t") + "\t\n") //nolint:govet // allow non-constant
335336
}
336337
}
337338
case md.TableRow:

0 commit comments

Comments
 (0)