MCPcopy
hub / github.com/cli/cli / TruncDescription

Method TruncDescription

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

Source from the content-addressed store, hash-verified

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

Callers 1

PromptGistsFunction · 0.80

Calls 2

TruncateFunction · 0.92

Tested by

no test coverage detected