MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / lineCount

Function lineCount

internal/tui/views/utils.go:26–31  ·  view source on GitHub ↗

lineCount returns the number of terminal lines in s.

(s string)

Source from the content-addressed store, hash-verified

24
25// lineCount returns the number of terminal lines in s.
26func lineCount(s string) int {
27 if s == "" {
28 return 0
29 }
30 return strings.Count(s, "\n") + 1
31}
32
33// boxWithTitle renders content in a rounded-border box whose title is embedded
34// in the top border line:

Callers 4

RenderMethod · 0.85
RenderMethod · 0.85
RenderMethod · 0.85
RenderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected