MCPcopy Index your code
hub / github.com/jetify-com/devbox / GetServices

Function GetServices

internal/plugin/services.go:13–31  ·  view source on GitHub ↗
(configs []*Config)

Source from the content-addressed store, hash-verified

11)
12
13func GetServices(configs []*Config) (services.Services, error) {
14 allSvcs := services.Services{}
15 for _, conf := range configs {
16 svcs, err := conf.Services()
17 if err != nil {
18 fmt.Fprintf(
19 os.Stderr,
20 "error reading services in plugin \"%s\", skipping",
21 conf.Name,
22 )
23 continue
24 }
25 for name, svc := range svcs {
26 allSvcs[name] = svc
27 }
28 }
29
30 return allSvcs, nil
31}

Callers 1

ServicesMethod · 0.92

Calls 1

ServicesMethod · 0.45

Tested by

no test coverage detected