(devPodConfig *latest.DevPod)
| 391 | } |
| 392 | |
| 393 | func (d *devPod) getAttachDevContainer(devPodConfig *latest.DevPod) *latest.DevContainer { |
| 394 | // find dev container config |
| 395 | var devContainer *latest.DevContainer |
| 396 | loader.EachDevContainer(devPodConfig, func(d *latest.DevContainer) bool { |
| 397 | if d.Attach == nil || (d.Attach.Enabled != nil && !*d.Attach.Enabled) { |
| 398 | return true |
| 399 | } |
| 400 | devContainer = d |
| 401 | return false |
| 402 | }) |
| 403 | |
| 404 | return devContainer |
| 405 | } |
| 406 | |
| 407 | func (d *devPod) getTerminalDevContainer(devPodConfig *latest.DevPod) *latest.DevContainer { |
| 408 | // find dev container config |
no test coverage detected