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

Function AgentHelpList

internal/skills/registry/registry.go:374–380  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers 1

NewCmdInstallFunction · 0.92

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected