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

Method AttachToProcessManager

internal/devbox/services.go:175–198  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

173}
174
175func (d *Devbox) AttachToProcessManager(ctx context.Context) error {
176 if !services.ProcessManagerIsRunning(d.projectDir) {
177 return usererr.New("Process manager is not running. Run `devbox services up` to start it.")
178 }
179
180 err := initDevboxUtilityProject(ctx, d.stderr)
181 if err != nil {
182 return err
183 }
184
185 processComposeBinPath, err := utilityLookPath("process-compose")
186 if err != nil {
187 return err
188 }
189
190 return services.AttachToProcessManager(
191 ctx,
192 d.stderr,
193 d.projectDir,
194 services.ProcessComposeOpts{
195 BinPath: processComposeBinPath,
196 },
197 )
198}
199
200func (d *Devbox) StartProcessManager(
201 ctx context.Context,

Callers 1

attachServicesFunction · 0.80

Calls 5

ProcessManagerIsRunningFunction · 0.92
NewFunction · 0.92
AttachToProcessManagerFunction · 0.92
initDevboxUtilityProjectFunction · 0.85
utilityLookPathFunction · 0.85

Tested by

no test coverage detected