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

Function mapAgentHostsToIDs

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

Source from the content-addressed store, hash-verified

476}
477
478func mapAgentHostsToIDs(hosts []*registry.AgentHost) string {
479 agentHostIDs := make([]string, len(hosts))
480 for i, h := range hosts {
481 agentHostIDs[i] = h.ID
482 }
483 return strings.Join(agentHostIDs, ",")
484}
485
486// runLocalInstall handles installation from a local directory path.
487func runLocalInstall(opts *InstallOptions) error {

Callers 1

installRunFunction · 0.85

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected