MCPcopy Create free account
hub / github.com/algolia/cli / allEntries

Method allEntries

pkg/cmd/open/open.go:298–309  ·  view source on GitHub ↗

allEntries returns every shortcut, sorted by name.

()

Source from the content-addressed store, hash-verified

296
297// allEntries returns every shortcut, sorted by name.
298func (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.

Callers 2

printTargetsFunction · 0.80
listTargetsFunction · 0.80

Calls 3

resolveScopeMethod · 0.95
targetNamesFunction · 0.85
entryForFunction · 0.85

Tested by

no test coverage detected