(hosts []*registry.AgentHost)
| 1031 | } |
| 1032 | |
| 1033 | func formatPlanHosts(hosts []*registry.AgentHost) string { |
| 1034 | names := make([]string, len(hosts)) |
| 1035 | for i, host := range hosts { |
| 1036 | names[i] = host.Name |
| 1037 | } |
| 1038 | return strings.Join(names, ", ") |
| 1039 | } |
| 1040 | |
| 1041 | func truncateDescription(s string, maxWidth int) string { |
| 1042 | return text.Truncate(maxWidth, text.RemoveExcessiveWhitespace(s)) |
no test coverage detected