Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ DisplayWidth
Function
DisplayWidth
internal/text/text.go:34–36 ·
view source on GitHub ↗
(s string)
Source
from the content-addressed store, hash-verified
32
}
33
34
func
DisplayWidth(s string) int {
35
return
text.DisplayWidth(s)
36
}
37
38
func
Truncate(maxWidth int, s string) string {
39
return
text.Truncate(maxWidth, s)
Callers
1
TestSkillSearchFuncTruncatesLabelsToAvailableWidth
Function · 0.92
Calls
no outgoing calls
Tested by
1
TestSkillSearchFuncTruncatesLabelsToAvailableWidth
Function · 0.74