(ctx context.Context, cmd *cli.Command)
| 29 | } |
| 30 | |
| 31 | func commandDown(ctx context.Context, cmd *cli.Command) error { |
| 32 | ce := clienv.FromCLI(cmd) |
| 33 | |
| 34 | dc := dockercompose.New(ce.Path.WorkingDir(), ce.Path.DockerCompose(), ce.ProjectName()) |
| 35 | |
| 36 | if err := dc.Stop(ctx, cmd.Bool(flagVolumes)); err != nil { |
| 37 | ce.Warnln("failed to stop Nhost development environment: %s", err) |
| 38 | } |
| 39 | |
| 40 | return nil |
| 41 | } |
nothing calls this directly
no test coverage detected