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

Function AgentHelpList

internal/skills/registry/registry.go:375–381  ·  view source on GitHub ↗

AgentHelpList returns a newline-separated bulleted list of agents for help text.

()

Source from the content-addressed store, hash-verified

373
374// AgentHelpList returns a newline-separated bulleted list of agents for help text.
375func AgentHelpList() string {
376 lines := make([]string, len(Agents))
377 for i, h := range Agents {
378 lines[i] = fmt.Sprintf(" - %s (%s)", h.Name, h.ID)
379 }
380 return strings.Join(lines, "\n")
381}
382
383// AgentNames returns the display names of all agents for prompting.
384func AgentNames() []string {

Callers 1

NewCmdInstallFunction · 0.92

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected