(hosts []*registry.AgentHost)
| 1021 | } |
| 1022 | |
| 1023 | func formatPlanHosts(hosts []*registry.AgentHost) string { |
| 1024 | names := make([]string, len(hosts)) |
| 1025 | for i, host := range hosts { |
| 1026 | names[i] = host.Name |
| 1027 | } |
| 1028 | return strings.Join(names, ", ") |
| 1029 | } |
| 1030 | |
| 1031 | func truncateDescription(s string, maxWidth int) string { |
| 1032 | return text.Truncate(maxWidth, text.RemoveExcessiveWhitespace(s)) |
no test coverage detected