MCPcopy Create free account
hub / github.com/cli/cli / TruncDescription

Method TruncDescription

pkg/cmd/gist/shared/shared.go:58–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}
57
58func (g Gist) TruncDescription() string {
59 return text.Truncate(100, text.RemoveExcessiveWhitespace(g.Description))
60}
61
62var NotFoundErr = errors.New("not found")
63

Callers 1

PromptGistsFunction · 0.80

Calls 2

TruncateFunction · 0.92

Tested by

no test coverage detected