NewDockerComposeCmd creates a command object for Compose, either in plugin or standalone mode (based on build tags).
(t testing.TB, args ...string)
| 377 | // NewDockerComposeCmd creates a command object for Compose, either in plugin |
| 378 | // or standalone mode (based on build tags). |
| 379 | func (c *CLI) NewDockerComposeCmd(t testing.TB, args ...string) icmd.Cmd { |
| 380 | t.Helper() |
| 381 | if composeStandaloneMode { |
| 382 | return c.NewCmd(ComposeStandalonePath(t), args...) |
| 383 | } |
| 384 | args = append([]string{"compose"}, args...) |
| 385 | return c.NewCmd(DockerExecutableName, args...) |
| 386 | } |
| 387 | |
| 388 | // ComposeStandalonePath returns the path to the locally-built Compose |
| 389 | // standalone binary from the repo. |