MCPcopy
hub / github.com/cli/cli / truncateDescription

Function truncateDescription

pkg/cmd/skills/install/install.go:1041–1043  ·  view source on GitHub ↗
(s string, maxWidth int)

Source from the content-addressed store, hash-verified

1039}
1040
1041func truncateDescription(s string, maxWidth int) string {
1042 return text.Truncate(maxWidth, text.RemoveExcessiveWhitespace(s))
1043}
1044
1045func checkOverwrite(opts *InstallOptions, skills []discovery.Skill, targetDir string, canPrompt bool) ([]discovery.Skill, error) {
1046 var existing, fresh []discovery.Skill

Callers 1

skillSearchFuncFunction · 0.85

Calls 2

TruncateFunction · 0.92

Tested by

no test coverage detected