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

Function truncateDescription

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

Source from the content-addressed store, hash-verified

1029}
1030
1031func truncateDescription(s string, maxWidth int) string {
1032 return text.Truncate(maxWidth, text.RemoveExcessiveWhitespace(s))
1033}
1034
1035func checkOverwrite(opts *InstallOptions, skills []discovery.Skill, targetDir string, canPrompt bool) ([]discovery.Skill, error) {
1036 var existing, fresh []discovery.Skill

Callers 1

skillSearchFuncFunction · 0.85

Calls 2

TruncateFunction · 0.92

Tested by

no test coverage detected