MCPcopy
hub / github.com/docker/compose / NewDockerComposeCmd

Method NewDockerComposeCmd

pkg/e2e/framework.go:379–386  ·  view source on GitHub ↗

NewDockerComposeCmd creates a command object for Compose, either in plugin or standalone mode (based on build tags).

(t testing.TB, args ...string)

Source from the content-addressed store, hash-verified

377// NewDockerComposeCmd creates a command object for Compose, either in plugin
378// or standalone mode (based on build tags).
379func (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.

Callers 15

doTestFunction · 0.95
TestWatchExecFunction · 0.95
TestWatchMultiServicesFunction · 0.95
TestWatchIncludesFunction · 0.95
TestScaleDownNoRecreateFunction · 0.95
TestLocalComposeUpFunction · 0.95

Calls 2

NewCmdMethod · 0.95
ComposeStandalonePathFunction · 0.85

Tested by 15

doTestFunction · 0.76
TestWatchExecFunction · 0.76
TestWatchMultiServicesFunction · 0.76
TestWatchIncludesFunction · 0.76
TestScaleDownNoRecreateFunction · 0.76
TestLocalComposeUpFunction · 0.76