MCPcopy Index your code
hub / github.com/jetify-com/devbox / showProcessComposePort

Function showProcessComposePort

internal/boxcli/services.go:288–299  ·  view source on GitHub ↗
(cmd *cobra.Command, flags servicesCmdFlags)

Source from the content-addressed store, hash-verified

286}
287
288func showProcessComposePort(cmd *cobra.Command, flags servicesCmdFlags) error {
289 box, err := devbox.Open(&devopt.Opts{
290 Dir: flags.config.path,
291 Environment: flags.config.environment,
292 Stderr: cmd.ErrOrStderr(),
293 })
294 if err != nil {
295 return errors.WithStack(err)
296 }
297
298 return box.ShowProcessComposePort(cmd.Context(), cmd.OutOrStdout())
299}

Callers 1

servicesCmdFunction · 0.85

Calls 2

OpenFunction · 0.92

Tested by

no test coverage detected