MCPcopy Index your code
hub / github.com/DarthSim/overmind / PaneExitCode

Method PaneExitCode

start/tmux.go:240–250  ·  view source on GitHub ↗
(paneID string)

Source from the content-addressed store, hash-verified

238}
239
240func (t *tmuxClient) PaneExitCode(paneID string) int {
241 cmd := exec.Command("tmux", "-L", t.Socket, "display-message", "-p", "-t", "%"+paneID, "#{pane_dead_status}")
242 var out bytes.Buffer
243 cmd.Stdout = &out
244 cmd.Stderr = os.Stderr
245 cmd.Run()
246
247 status, _ := strconv.Atoi(strings.TrimSpace(out.String()))
248
249 return status
250}

Callers 1

observeMethod · 0.80

Calls 1

RunMethod · 0.45

Tested by

no test coverage detected