validEventNames provides a list of all event actions. The list is derived from eventActions. Actions that are not suitable for usage in completions are removed.
()
| 150 | // The list is derived from eventActions. |
| 151 | // Actions that are not suitable for usage in completions are removed. |
| 152 | func validEventNames() []string { |
| 153 | names := make([]string, 0, len(eventActions)) |
| 154 | for _, eventAction := range eventActions { |
| 155 | if strings.Contains(string(eventAction), " ") { |
| 156 | continue |
| 157 | } |
| 158 | names = append(names, string(eventAction)) |
| 159 | } |
| 160 | return names |
| 161 | } |
| 162 | |
| 163 | // configNames contacts the API to get a list of config names. |
| 164 | // In case of an error, an empty list is returned. |
no test coverage detected
searching dependent graphs…