MCPcopy
hub / github.com/cli/cli / formatPlanHosts

Function formatPlanHosts

pkg/cmd/skills/install/install.go:1023–1029  ·  view source on GitHub ↗
(hosts []*registry.AgentHost)

Source from the content-addressed store, hash-verified

1021}
1022
1023func 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
1031func truncateDescription(s string, maxWidth int) string {
1032 return text.Truncate(maxWidth, text.RemoveExcessiveWhitespace(s))

Callers 3

installRunFunction · 0.85
runLocalInstallFunction · 0.85
buildInstallPlansFunction · 0.85

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected