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

Function startServices

internal/boxcli/services.go:183–199  ·  view source on GitHub ↗
(cmd *cobra.Command, services []string, flags servicesCmdFlags)

Source from the content-addressed store, hash-verified

181}
182
183func startServices(cmd *cobra.Command, services []string, flags servicesCmdFlags) error {
184 env, err := flags.Env(flags.config.path)
185 if err != nil {
186 return err
187 }
188 box, err := devbox.Open(&devopt.Opts{
189 Dir: flags.config.path,
190 Environment: flags.config.environment,
191 Env: env,
192 Stderr: cmd.ErrOrStderr(),
193 })
194 if err != nil {
195 return errors.WithStack(err)
196 }
197
198 return box.StartServices(cmd.Context(), flags.runInCurrentShell, services...)
199}
200
201func stopServices(
202 cmd *cobra.Command,

Callers 1

servicesCmdFunction · 0.85

Calls 3

OpenFunction · 0.92
StartServicesMethod · 0.80
EnvMethod · 0.65

Tested by

no test coverage detected