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

Function lookupProcessCompose

internal/services/config.go:63–84  ·  view source on GitHub ↗
(projectDir, path string)

Source from the content-addressed store, hash-verified

61}
62
63func lookupProcessCompose(projectDir, path string) string {
64 if path == "" {
65 path = projectDir
66 }
67 if !filepath.IsAbs(path) {
68 path = filepath.Join(projectDir, path)
69 }
70
71 pathsToCheck := []string{
72 path,
73 filepath.Join(path, "process-compose.yaml"),
74 filepath.Join(path, "process-compose.yml"),
75 }
76
77 for _, p := range pathsToCheck {
78 if fi, err := os.Stat(p); err == nil && !fi.IsDir() {
79 return p
80 }
81 }
82
83 return ""
84}

Callers 1

FromUserProcessComposeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected