MCPcopy Create free account
hub / github.com/devspace-sh/devspace / lastTerminalPodName

Function lastTerminalPodName

e2e/tests/terminal/terminal.go:241–251  ·  view source on GitHub ↗
(output string)

Source from the content-addressed store, hash-verified

239}
240
241func lastTerminalPodName(output string) string {
242 lines := strings.Split(output, "\n")
243 for i := len(lines) - 1; i >= 0; i-- {
244 line := sanitizeTerminalLine(lines[i])
245 if line != "" {
246 return line
247 }
248 }
249
250 return ""
251}
252
253func sanitizeTerminalLine(line string) string {
254 line = strings.Map(func(r rune) rune {

Callers 1

terminal.goFile · 0.85

Calls 1

sanitizeTerminalLineFunction · 0.85

Tested by

no test coverage detected