MCPcopy Index your code
hub / github.com/cli/cli / formatPlanHosts

Function formatPlanHosts

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

Source from the content-addressed store, hash-verified

1031}
1032
1033func 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
1041func truncateDescription(s string, maxWidth int) string {
1042 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