Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4ce84a4

Browse files
fix: update golden files
1 parent5b8fa3b commit4ce84a4

File tree

4 files changed

+31
-17
lines changed

4 files changed

+31
-17
lines changed

‎cli/cliui/cliui.go

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ var (
4343
)
4444

4545
var (
46-
Red=Color("1")
47-
Green=Color("2")
48-
Yellow=Color("3")
49-
Blue=Color("4")
50-
Magenta=Color("5")
51-
White=Color("7")
52-
BrightMagenta=Color("13")
46+
red=Color("1")
47+
green=Color("2")
48+
yellow=Color("3")
49+
blue=Color("4")
50+
magenta=Color("5")
51+
white=Color("7")
52+
brightMagenta=Color("13")
5353
)
5454

5555
// Color returns a color for the given string.
@@ -126,11 +126,11 @@ func Field(s string) string {
126126
returnpretty.Sprint(DefaultStyles.Field,s)
127127
}
128128

129-
funcifTerm(fmt pretty.Formatter) pretty.Formatter {
129+
funcifTerm(f pretty.Formatter) pretty.Formatter {
130130
if!isTerm() {
131131
returnpretty.Nop
132132
}
133-
returnfmt
133+
returnf
134134
}
135135

136136
funcinit() {
@@ -144,31 +144,31 @@ func init() {
144144
pretty.BgColor(color.Color("#2C2C2C")),
145145
},
146146
DateTimeStamp: pretty.Style{
147-
pretty.FgColor(Blue),
147+
pretty.FgColor(blue),
148148
},
149149
Error: pretty.Style{
150-
pretty.FgColor(Red),
150+
pretty.FgColor(red),
151151
},
152152
Field: pretty.Style{
153153
pretty.XPad(1,1),
154154
pretty.FgColor(color.Color("#FFFFFF")),
155155
pretty.BgColor(color.Color("#2B2A2A")),
156156
},
157157
Fuchsia: pretty.Style{
158-
pretty.FgColor(BrightMagenta),
158+
pretty.FgColor(brightMagenta),
159159
},
160160
Keyword: pretty.Style{
161-
pretty.FgColor(Green),
161+
pretty.FgColor(green),
162162
},
163163
Placeholder: pretty.Style{
164-
pretty.FgColor(Magenta),
164+
pretty.FgColor(magenta),
165165
},
166166
Prompt: pretty.Style{
167-
pretty.FgColor(White),
167+
pretty.FgColor(white),
168168
pretty.Wrap("> ",""),
169169
},
170170
Warn: pretty.Style{
171-
pretty.FgColor(Yellow),
171+
pretty.FgColor(yellow),
172172
},
173173
Wrap: pretty.Style{
174174
pretty.LineWrap(80),
@@ -177,7 +177,7 @@ func init() {
177177

178178
DefaultStyles.FocusedPrompt=append(
179179
DefaultStyles.Prompt,
180-
pretty.FgColor(Blue),
180+
pretty.FgColor(blue),
181181
)
182182
}
183183

‎cli/testdata/coder_--help.golden

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ variables or flags.
8989
requests. The command must output each header as `key=value` on its
9090
own line.
9191

92+
--no-color bool
93+
Disable use of color in CLI output.
94+
9295
--no-feature-warning bool, $CODER_NO_FEATURE_WARNING
9396
Suppress warnings about unlicensed features.
9497

‎docs/reference/cli/README.md

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

‎enterprise/cli/testdata/coder_--help.golden

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ variables or flags.
4949
requests. The command must output each header as `key=value` on its
5050
own line.
5151

52+
--no-color bool
53+
Disable use of color in CLI output.
54+
5255
--no-feature-warning bool, $CODER_NO_FEATURE_WARNING
5356
Suppress warnings about unlicensed features.
5457

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp