MCPcopy
hub / github.com/cli/cli / Truncate

Function Truncate

internal/text/text.go:38–40  ·  view source on GitHub ↗
(maxWidth int, s string)

Source from the content-addressed store, hash-verified

36}
37
38func Truncate(maxWidth int, s string) string {
39 return text.Truncate(maxWidth, s)
40}
41
42func Pluralize(num int, thing string) string {
43 return text.Pluralize(num, thing)

Callers 8

NewCmdShellAliasFunction · 0.92
NewCmdAliasFunction · 0.92
TruncDescriptionMethod · 0.92
renderTableFunction · 0.92
promptInstallFunction · 0.92
listAvailableSkillsFunction · 0.92
truncateDescriptionFunction · 0.92
printPrsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected