allEntries returns every shortcut, sorted by name.
()
| 296 | |
| 297 | // allEntries returns every shortcut, sorted by name. |
| 298 | func (opts *OpenOptions) allEntries() []pageEntry { |
| 299 | baseURL, appID, displayAppID := opts.resolveScope() |
| 300 | |
| 301 | entries := make([]pageEntry, 0, len(resourceURLs)+len(dashboardTargets)) |
| 302 | for _, name := range targetNames() { |
| 303 | if entry, ok := entryFor(name, baseURL, appID, displayAppID); ok { |
| 304 | entries = append(entries, entry) |
| 305 | } |
| 306 | } |
| 307 | |
| 308 | return entries |
| 309 | } |
| 310 | |
| 311 | // openDashboardTarget signs the user in, resolves the current application |
| 312 | // (selecting one if needed), then opens the dashboard page. |
no test coverage detected