MCPcopy Create free account
hub / github.com/cli/cli / formatPlanHosts

Function formatPlanHosts

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

Source from the content-addressed store, hash-verified

1015}
1016
1017func formatPlanHosts(hosts []*registry.AgentHost) string {
1018 names := make([]string, len(hosts))
1019 for i, host := range hosts {
1020 names[i] = host.Name
1021 }
1022 return strings.Join(names, ", ")
1023}
1024
1025func checkOverwrite(opts *InstallOptions, skills []discovery.Skill, targetDir string, canPrompt bool) ([]discovery.Skill, error) {
1026 var existing, fresh []discovery.Skill

Callers 3

installRunFunction · 0.85
runLocalInstallFunction · 0.85
buildInstallPlansFunction · 0.85

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected