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

Function targetNames

pkg/cmd/open/open.go:69–80  ·  view source on GitHub ↗

targetNames returns every supported shortcut, sorted.

()

Source from the content-addressed store, hash-verified

67
68// targetNames returns every supported shortcut, sorted.
69func 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
82func unsupportedShortcutError(shortcut string) error {
83 return fmt.Errorf(

Callers 3

unsupportedShortcutErrorFunction · 0.85
NewOpenCmdFunction · 0.85
allEntriesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected