MCPcopy Create free account
hub / github.com/DarthSim/overmind / mapProcess

Method mapProcess

start/tmux.go:165–180  ·  view source on GitHub ↗
(pane, name, pid string)

Source from the content-addressed store, hash-verified

163}
164
165func (t *tmuxClient) mapProcess(pane, name, pid string) {
166 for _, p := range t.processes {
167 if p.Name != name {
168 continue
169 }
170
171 t.processesByPane[pane] = p
172 p.paneID = pane // save the tmux paneID in the process
173
174 if ipid, err := strconv.Atoi(pid); err == nil {
175 p.pid = ipid
176 }
177
178 break
179 }
180}
181
182func (t *tmuxClient) sendOutput(name, str string) {
183 if proc, ok := t.processesByPane[name]; ok {

Callers 1

listenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected