MCPcopy Create free account
hub / github.com/github/gh-aw / summarizeCommandOutput

Function summarizeCommandOutput

pkg/cli/update_extension_check.go:547–554  ·  view source on GitHub ↗
(output string)

Source from the content-addressed store, hash-verified

545}
546
547func summarizeCommandOutput(output string) string {
548 const maxOutputLen = 300
549 trimmed := strings.TrimSpace(output)
550 if len(trimmed) <= maxOutputLen {
551 return trimmed
552 }
553 return trimmed[:maxOutputLen] + "…"
554}
555
556func isPrereleaseVersion(version string) bool {
557 version = "v" + strings.TrimPrefix(version, "v")

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected