(output string)
| 545 | } |
| 546 | |
| 547 | func 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 | |
| 556 | func isPrereleaseVersion(version string) bool { |
| 557 | version = "v" + strings.TrimPrefix(version, "v") |
no outgoing calls
no test coverage detected