Skip to content

Commit 06ad009

Browse files
chore: update golangci-lint version (#2235)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 56b7246 commit 06ad009

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ jobs:
1111
uses: golangci/golangci-lint-action@v2
1212
with:
1313
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
14-
version: v1.42.1
14+
version: v1.45.2

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ require (
2222
github.com/spf13/pflag v1.0.5
2323
github.com/stretchr/testify v1.7.1
2424
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
25+
golang.org/x/text v0.3.7
2526
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
2627
)
2728

go.sum

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ golang.org/x/sys v0.0.0-20211205182925-97ca703d548d h1:FjkYO/PPp4Wi0EAUOVLxePm7q
7979
golang.org/x/sys v0.0.0-20211205182925-97ca703d548d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
8080
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
8181
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
82+
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
83+
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
84+
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
8285
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
8386
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
8487
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=

internal/human/marshal.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import (
1414
"github.com/scaleway/scaleway-cli/internal/terminal"
1515
"github.com/scaleway/scaleway-sdk-go/logger"
1616
"github.com/scaleway/scaleway-sdk-go/strcase"
17+
"golang.org/x/text/cases"
18+
"golang.org/x/text/language"
1719
)
1820

1921
// Padding between column
@@ -366,7 +368,7 @@ func marshalSection(section *MarshalSection, value reflect.Value, opt *MarshalOp
366368
title := section.Title
367369
if title == "" {
368370
title = strings.ReplaceAll(strcase.ToBashArg(section.FieldName), "-", " ")
369-
title = strings.Title(strings.ReplaceAll(title, ".", " - "))
371+
title = cases.Title(language.English).String(strings.ReplaceAll(title, ".", " - "))
370372
}
371373
subOpt.Title = title
372374

0 commit comments

Comments
 (0)