MCPcopy
hub / github.com/docker/compose / shortcutKeyColor

Function shortcutKeyColor

cmd/formatter/shortcut.go:382–388  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

380}
381
382func shortcutKeyColor(key string) string {
383 foreground := "38;2"
384 black := "0;0;0"
385 background := "48;2"
386 white := "255;255;255"
387 return ansiColor(foreground+";"+black+";"+background+";"+white, key, BOLD)
388}
389
390func navColor(key string) string {
391 return ansiColor(FAINT, key)

Callers 1

navigationMenuMethod · 0.85

Calls 1

ansiColorFunction · 0.85

Tested by

no test coverage detected