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

Function readGlobalProcessComposeJSON

internal/services/manager.go:59–68  ·  view source on GitHub ↗
(file *os.File)

Source from the content-addressed store, hash-verified

57}
58
59func readGlobalProcessComposeJSON(file *os.File) *globalProcessComposeConfig {
60 config := newGlobalProcessComposeConfig()
61
62 err := errors.WithStack(cuecfg.ParseFile(file.Name(), &config.Instances))
63 if err != nil {
64 return config
65 }
66 config.Path = file.Name()
67 return config
68}
69
70func writeGlobalProcessComposeJSON(config *globalProcessComposeConfig, file *os.File) error {
71 // convert config to json using cue

Callers 7

StartProcessManagerFunction · 0.85
StopProcessManagerFunction · 0.85
StopAllProcessManagersFunction · 0.85
AttachToProcessManagerFunction · 0.85
ProcessManagerIsRunningFunction · 0.85
GetProcessManagerPortFunction · 0.85

Calls 2

ParseFileFunction · 0.92

Tested by

no test coverage detected