File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,6 @@ func (l *logConsumer) Err(container, message string) {
102
102
l .write (l .stderr , container , message )
103
103
}
104
104
105
- var navColor = makeColorFunc ("90" )
106
-
107
105
func (l * logConsumer ) write (w io.Writer , container , message string ) {
108
106
if l .ctx .Err () != nil {
109
107
return
Original file line number Diff line number Diff line change @@ -187,7 +187,6 @@ func (lk *LogKeyboard) printNavigationMenu() {
187
187
}
188
188
189
189
func (lk * LogKeyboard ) navigationMenu () string {
190
- var options string
191
190
var openDDInfo string
192
191
if lk .IsDockerDesktopActive {
193
192
openDDInfo = shortcutKeyColor ("v" ) + navColor (" View in Docker Desktop" )
@@ -201,7 +200,7 @@ func (lk *LogKeyboard) navigationMenu() string {
201
200
isEnabled = " Disable"
202
201
}
203
202
watchInfo = watchInfo + shortcutKeyColor ("w" ) + navColor (isEnabled + " Watch" )
204
- return options + openDDInfo + watchInfo
203
+ return openDDInfo + watchInfo
205
204
}
206
205
207
206
func (lk * LogKeyboard ) clearNavigationMenu () {
@@ -325,3 +324,7 @@ func shortcutKeyColor(key string) string {
325
324
white := "255;255;255"
326
325
return ansiColor (foreground + ";" + black + ";" + background + ";" + white , key , BOLD )
327
326
}
327
+
328
+ func navColor (key string ) string {
329
+ return ansiColor (FAINT , key )
330
+ }
You can’t perform that action at this time.
0 commit comments