(filePath string)
| 196 | } |
| 197 | |
| 198 | func Restart(filePath string) (string, error) { |
| 199 | if err := checkCmd(); err != nil { |
| 200 | return "", err |
| 201 | } |
| 202 | base, extra := getComposeBaseCmd() |
| 203 | args := append(extra, loadFiles(filePath)...) |
| 204 | args = append(args, "restart") |
| 205 | return cmd.NewCommandMgr(cmd.WithTimeout(20*time.Minute)).RunWithStdout(base, args...) |
| 206 | } |
| 207 | |
| 208 | func Operate(filePath, operation string) (string, error) { |
| 209 | if err := checkCmd(); err != nil { |
nothing calls this directly
no test coverage detected