(filePath, operation string)
| 206 | } |
| 207 | |
| 208 | func Operate(filePath, operation string) (string, error) { |
| 209 | if err := checkCmd(); err != nil { |
| 210 | return "", err |
| 211 | } |
| 212 | base, extra := getComposeBaseCmd() |
| 213 | args := append(extra, loadFiles(filePath)...) |
| 214 | args = append(args, operation) |
| 215 | return cmd.NewCommandMgr(cmd.WithTimeout(20*time.Minute)).RunWithStdout(base, args...) |
| 216 | } |
| 217 | |
| 218 | func DownAndUp(filePath string) (string, error) { |
| 219 | if err := checkCmd(); err != nil { |
nothing calls this directly
no test coverage detected