MCPcopy Create free account
hub / github.com/nhost/nhost / commandDown

Function commandDown

cli/cmd/dev/down.go:31–41  ·  view source on GitHub ↗
(ctx context.Context, cmd *cli.Command)

Source from the content-addressed store, hash-verified

29}
30
31func 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}

Callers

nothing calls this directly

Calls 7

FromCLIFunction · 0.92
NewFunction · 0.92
WorkingDirMethod · 0.80
DockerComposeMethod · 0.80
ProjectNameMethod · 0.80
WarnlnMethod · 0.80
StopMethod · 0.65

Tested by

no test coverage detected