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

Method Services

internal/devbox/devbox.go:600–621  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

598}
599
600func (d *Devbox) Services() (services.Services, error) {
601 pluginSvcs, err := plugin.GetServices(d.cfg.IncludedPluginConfigs())
602 if err != nil {
603 return nil, err
604 }
605
606 userSvcs := services.FromUserProcessCompose(d.projectDir, d.customProcessComposeFile)
607
608 svcSet := lo.Assign(pluginSvcs, userSvcs)
609 keys := make([]string, 0, len(svcSet))
610 for k := range svcSet {
611 keys = append(keys, k)
612 }
613 slices.Sort(keys)
614
615 result := services.Services{}
616 for _, k := range keys {
617 result[k] = svcSet[k]
618 }
619
620 return result, nil
621}
622
623func (d *Devbox) execPrintDevEnv(ctx context.Context, usePrintDevEnvCache bool) (map[string]string, error) {
624 var spinny *spinner.Spinner

Callers 5

StartServicesMethod · 0.95
StopServicesMethod · 0.95
ListServicesMethod · 0.95
RestartServicesMethod · 0.95
StartProcessManagerMethod · 0.95

Calls 3

GetServicesFunction · 0.92
FromUserProcessComposeFunction · 0.92
IncludedPluginConfigsMethod · 0.80

Tested by

no test coverage detected