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

Function extraLines

cmd/formatter/shortcut.go:378–380  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

376}
377
378func extraLines(s string) int {
379 return int(math.Floor(float64(lenAnsi(s)) / float64(goterm.Width())))
380}
381
382func shortcutKeyColor(key string) string {
383 foreground := "38;2"

Callers 3

printErrorMethod · 0.85
createBufferMethod · 0.85
printNavigationMenuMethod · 0.85

Calls 1

lenAnsiFunction · 0.70

Tested by

no test coverage detected