Skip to content

Commit 6ae2d35

Browse files
authored
Merge pull request kubernetes#128494 from dims/drop-go-colortext-and-its-usage
Drop go-colortext and its usage
2 parents c6ea102 + d450b6e commit 6ae2d35

File tree

14 files changed

+0
-418
lines changed

14 files changed

+0
-418
lines changed

LICENSES/vendor/github.com/daviddengcn/go-colortext/LICENSE

Lines changed: 0 additions & 58 deletions
This file was deleted.

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ require (
140140
github.com/coredns/caddy v1.1.1 // indirect
141141
github.com/coreos/go-semver v0.3.1 // indirect
142142
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
143-
github.com/daviddengcn/go-colortext v1.0.0 // indirect
144143
github.com/dustin/go-humanize v1.0.1 // indirect
145144
github.com/euank/go-kmsg-parser v2.0.0+incompatible // indirect
146145
github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f // indirect

go.sum

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,6 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
211211
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
212212
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
213213
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
214-
github.com/daviddengcn/go-colortext v1.0.0 h1:ANqDyC0ys6qCSvuEK7l3g5RaehL/Xck9EX8ATG8oKsE=
215-
github.com/daviddengcn/go-colortext v1.0.0/go.mod h1:zDqEI5NVUop5QPpVJUxE9UO10hRnmkD5G4Pmri9+m4c=
216214
github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk=
217215
github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
218216
github.com/docker/docker v26.1.4+incompatible h1:vuTpXDuoga+Z38m1OZHzl7NKisKWaWlhjQk7IDPSLsU=
@@ -294,11 +292,6 @@ github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QD
294292
github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
295293
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
296294
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
297-
github.com/golangplus/bytes v0.0.0-20160111154220-45c989fe5450/go.mod h1:Bk6SMAONeMXrxql8uvOKuAZSu8aM5RUGv+1C6IJaEho=
298-
github.com/golangplus/bytes v1.0.0/go.mod h1:AdRaCFwmc/00ZzELMWb01soso6W1R/++O1XL80yAn+A=
299-
github.com/golangplus/fmt v1.0.0/go.mod h1:zpM0OfbMCjPtd2qkTD/jX2MgiFCqklhSUFyDW44gVQE=
300-
github.com/golangplus/testing v1.0.0 h1:+ZeeiKZENNOMkTTELoSySazi+XaEhVO0mb+eanrSEUQ=
301-
github.com/golangplus/testing v1.0.0/go.mod h1:ZDreixUV3YzhoVraIDyOzHrr76p6NUh6k/pPg/Q3gYA=
302295
github.com/google/btree v1.0.1 h1:gK4Kx5IaGY9CD5sPJ36FHiBJ6ZXl0kilRiiCj+jdYp4=
303296
github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA=
304297
github.com/google/cadvisor v0.51.0 h1:BspqSPdZoLKrnvuZNOvM/KiJ/A+RdixwagN20n+2H8k=

go.work.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ github.com/go-logfmt/logfmt v0.5.1 h1:otpy5pqBCBZ1ng9RQ0dPu4PN7ba75Y/aA+UpowDyNV
151151
github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk=
152152
github.com/golang/glog v1.2.1 h1:OptwRhECazUx5ix5TTWC3EZhsZEHWcYWY4FQHTIubm4=
153153
github.com/golang/mock v1.1.1 h1:G5FRp8JnTd7RQH5kemVNlMeyXQAztQ3mOWV95KxsXH8=
154-
github.com/golangplus/bytes v1.0.0 h1:YQKBijBVMsBxIiXT4IEhlKR2zHohjEqPole4umyDX+c=
155-
github.com/golangplus/fmt v1.0.0 h1:FnUKtw86lXIPfBMc3FimNF3+ABcV+aH5F17OOitTN+E=
156154
github.com/ianlancetaylor/demangle v0.0.0-20240312041847-bd984b5ce465 h1:KwWnWVWCNtNq/ewIX7HIKnELmEx2nDP42yskD/pi7QE=
157155
github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA=
158156
github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U=

staging/src/k8s.io/kubectl/go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ godebug default=go1.23
99
require (
1010
github.com/MakeNowJust/heredoc v1.0.0
1111
github.com/chai2010/gettext-go v1.0.2
12-
github.com/daviddengcn/go-colortext v1.0.0
1312
github.com/distribution/reference v0.6.0
1413
github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f
1514
github.com/fatih/camelcase v1.0.0

staging/src/k8s.io/kubectl/go.sum

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/kubectl/pkg/cmd/clusterinfo/clusterinfo.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import (
3333
"k8s.io/kubectl/pkg/util/i18n"
3434
"k8s.io/kubectl/pkg/util/templates"
3535

36-
ct "github.com/daviddengcn/go-colortext"
3736
"github.com/spf13/cobra"
3837
)
3938

@@ -156,12 +155,8 @@ func (o *ClusterInfoOptions) Run() error {
156155
}
157156

158157
func printService(out io.Writer, name, link string) {
159-
ct.ChangeColor(ct.Green, false, ct.None, false)
160158
fmt.Fprint(out, name)
161-
ct.ResetColor()
162159
fmt.Fprint(out, " is running at ")
163-
ct.ChangeColor(ct.Yellow, false, ct.None, false)
164160
fmt.Fprint(out, link)
165-
ct.ResetColor()
166161
fmt.Fprintln(out, "")
167162
}

vendor/github.com/daviddengcn/go-colortext/.gitignore

Lines changed: 0 additions & 22 deletions
This file was deleted.

vendor/github.com/daviddengcn/go-colortext/LICENSE

Lines changed: 0 additions & 54 deletions
This file was deleted.

vendor/github.com/daviddengcn/go-colortext/README.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)