(ctx context.Context)
| 173 | } |
| 174 | |
| 175 | func (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 | |
| 200 | func (d *Devbox) StartProcessManager( |
| 201 | ctx context.Context, |
no test coverage detected