(content []byte)
| 49 | } |
| 50 | |
| 51 | func NamesFromProcessCompose(content []byte) ([]string, error) { |
| 52 | var processCompose types.Project |
| 53 | if err := yaml.Unmarshal(content, &processCompose); err != nil { |
| 54 | return nil, err |
| 55 | } |
| 56 | names := []string{} |
| 57 | for name := range processCompose.Processes { |
| 58 | names = append(names, name) |
| 59 | } |
| 60 | return names, nil |
| 61 | } |
| 62 | |
| 63 | func lookupProcessCompose(projectDir, path string) string { |
| 64 | if path == "" { |