(filePath string)
| 39 | } |
| 40 | |
| 41 | func Up(filePath string) (string, error) { |
| 42 | if err := checkCmd(); err != nil { |
| 43 | return "", err |
| 44 | } |
| 45 | base, extra := getComposeBaseCmd() |
| 46 | args := append(extra, loadFiles(filePath)...) |
| 47 | args = append(args, "up", "-d") |
| 48 | return cmd.NewCommandMgr(cmd.WithTimeout(20*time.Minute)).RunWithStdout(base, args...) |
| 49 | } |
| 50 | |
| 51 | func UpWithTask(filePath string, task *task.Task, forcePull bool) error { |
| 52 | if err := pullComposeImages(filePath, forcePull, task); err != nil { |
nothing calls this directly
no test coverage detected