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

Function commandLogs

cli/cmd/dev/logs.go:22–32  ·  view source on GitHub ↗
(ctx context.Context, cmd *cli.Command)

Source from the content-addressed store, hash-verified

20}
21
22func commandLogs(ctx context.Context, cmd *cli.Command) error {
23 ce := clienv.FromCLI(cmd)
24
25 dc := dockercompose.New(ce.Path.WorkingDir(), ce.Path.DockerCompose(), ce.ProjectName())
26
27 if err := dc.Logs(ctx, cmd.Args().Slice()...); err != nil {
28 ce.Warnln("%s", err)
29 }
30
31 return nil
32}

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
LogsMethod · 0.65

Tested by

no test coverage detected