(filePath string)
| 186 | } |
| 187 | |
| 188 | func Stop(filePath string) (string, error) { |
| 189 | if err := checkCmd(); err != nil { |
| 190 | return "", err |
| 191 | } |
| 192 | base, extra := getComposeBaseCmd() |
| 193 | args := append(extra, loadFiles(filePath)...) |
| 194 | args = append(args, "stop") |
| 195 | return cmd.NewCommandMgr(cmd.WithTimeout(20*time.Minute)).RunWithStdout(base, args...) |
| 196 | } |
| 197 | |
| 198 | func Restart(filePath string) (string, error) { |
| 199 | if err := checkCmd(); err != nil { |
nothing calls this directly
no test coverage detected