MCPcopy Index your code
hub / github.com/devspace-sh/devspace / getAttachDevContainer

Method getAttachDevContainer

pkg/devspace/devpod/devpod.go:393–405  ·  view source on GitHub ↗
(devPodConfig *latest.DevPod)

Source from the content-addressed store, hash-verified

391}
392
393func (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
407func (d *devPod) getTerminalDevContainer(devPodConfig *latest.DevPod) *latest.DevContainer {
408 // find dev container config

Callers 1

startMethod · 0.95

Calls 1

EachDevContainerFunction · 0.92

Tested by

no test coverage detected