(filePath string)
| 176 | } |
| 177 | |
| 178 | func Down(filePath string) (string, error) { |
| 179 | if err := checkCmd(); err != nil { |
| 180 | return "", err |
| 181 | } |
| 182 | base, extra := getComposeBaseCmd() |
| 183 | args := append(extra, loadFiles(filePath)...) |
| 184 | args = append(args, "down", "--remove-orphans") |
| 185 | return cmd.NewCommandMgr(cmd.WithTimeout(20*time.Minute)).RunWithStdout(base, args...) |
| 186 | } |
| 187 | |
| 188 | func Stop(filePath string) (string, error) { |
| 189 | if err := checkCmd(); err != nil { |
nothing calls this directly
no test coverage detected