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

Function EventTypeDescription

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

EventTypeDescription returns the description of the named event type, or an empty string if it is unknown.

(name string)

Source from the content-addressed store, hash-verified

22
23// EventTypeDescription returns the description of the named event type, or an empty string if it is unknown.
24func EventTypeDescription(name string) string {
25 for _, t := range EventTypes {
26 if t.Name == name {
27 return t.Description
28 }
29 }
30 return ""
31}
32
33// EventTypesHelp returns the supported event types as a Markdown list for command help, without a trailing newline.
34func EventTypesHelp() string {

Callers 1

viewRunFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected