(file *os.File)
| 57 | } |
| 58 | |
| 59 | func 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 | |
| 70 | func writeGlobalProcessComposeJSON(config *globalProcessComposeConfig, file *os.File) error { |
| 71 | // convert config to json using cue |
no test coverage detected