(filePath string, task *task.Task, forcePull bool)
| 49 | } |
| 50 | |
| 51 | func UpWithTask(filePath string, task *task.Task, forcePull bool) error { |
| 52 | if err := pullComposeImages(filePath, forcePull, task); err != nil { |
| 53 | return err |
| 54 | } |
| 55 | base, extra := getComposeBaseCmd() |
| 56 | args := append(extra, loadFiles(filePath)...) |
| 57 | args = append(args, "up", "-d") |
| 58 | return cmd.NewCommandMgr(cmd.WithTask(*task), cmd.WithTimeout(20*time.Minute)).Run(base, args...) |
| 59 | } |
| 60 | |
| 61 | func pullComposeImages(filePath string, forcePull bool, task *task.Task) error { |
| 62 | images, err := GetComposeImages(filePath) |
nothing calls this directly
no test coverage detected