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

Function mapSkillsToNames

pkg/cmd/skills/install/install.go:470–476  ·  view source on GitHub ↗
(skills []discovery.Skill)

Source from the content-addressed store, hash-verified

468const visibilityWaitTimeout = 200 * time.Millisecond
469
470func mapSkillsToNames(skills []discovery.Skill) string {
471 names := make([]string, len(skills))
472 for i, s := range skills {
473 names[i] = s.DisplayName()
474 }
475 return strings.Join(names, ",")
476}
477
478func mapAgentHostsToIDs(hosts []*registry.AgentHost) string {
479 agentHostIDs := make([]string, len(hosts))

Callers 1

installRunFunction · 0.85

Calls 2

JoinMethod · 0.80
DisplayNameMethod · 0.65

Tested by

no test coverage detected