EventTypesHelp returns the supported event types as a Markdown list for command help, without a trailing newline.
()
| 32 | |
| 33 | // EventTypesHelp returns the supported event types as a Markdown list for command help, without a trailing newline. |
| 34 | func 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 | } |
no test coverage detected