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

Function bridgeCommand

cmd/compose/bridge.go:36–47  ·  view source on GitHub ↗
(p *ProjectOptions, dockerCli command.Cli)

Source from the content-addressed store, hash-verified

34)
35
36func bridgeCommand(p *ProjectOptions, dockerCli command.Cli) *cobra.Command {
37 cmd := &cobra.Command{
38 Use: "bridge CMD [OPTIONS]",
39 Short: "Convert compose files into another model",
40 TraverseChildren: true,
41 }
42 cmd.AddCommand(
43 convertCommand(p, dockerCli),
44 transformersCommand(dockerCli),
45 )
46 return cmd
47}
48
49func convertCommand(p *ProjectOptions, dockerCli command.Cli) *cobra.Command {
50 convertOpts := bridge.ConvertOptions{}

Callers 1

RootCommandFunction · 0.85

Calls 2

convertCommandFunction · 0.85
transformersCommandFunction · 0.85

Tested by

no test coverage detected