targetNames returns every supported shortcut, sorted.
()
| 67 | |
| 68 | // targetNames returns every supported shortcut, sorted. |
| 69 | func targetNames() []string { |
| 70 | names := make([]string, 0, len(resourceURLs)+len(dashboardTargets)) |
| 71 | for name := range resourceURLs { |
| 72 | names = append(names, name) |
| 73 | } |
| 74 | for name := range dashboardTargets { |
| 75 | names = append(names, name) |
| 76 | } |
| 77 | sort.Strings(names) |
| 78 | |
| 79 | return names |
| 80 | } |
| 81 | |
| 82 | func unsupportedShortcutError(shortcut string) error { |
| 83 | return fmt.Errorf( |
no outgoing calls
no test coverage detected