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

Function EventTypesHelp

pkg/cmd/event/shared/help.go:34–40  ·  view source on GitHub ↗

EventTypesHelp returns the supported event types as a Markdown list for command help, without a trailing newline.

()

Source from the content-addressed store, hash-verified

32
33// EventTypesHelp returns the supported event types as a Markdown list for command help, without a trailing newline.
34func EventTypesHelp() string {
35 lines := make([]string, len(EventTypes))
36 for i, t := range EventTypes {
37 lines[i] = fmt.Sprintf("- `%s`: %s", t.Name, t.Description)
38 }
39 return strings.Join(lines, "\n")
40}

Callers 2

NewCmdCreateFunction · 0.92
NewCmdListenFunction · 0.92

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected