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

Method processGetConnection

start/command_center.go:145–166  ·  view source on GitHub ↗
(args []string, conn net.Conn)

Source from the content-addressed store, hash-verified

143}
144
145func (c *commandCenter) processGetConnection(args []string, conn net.Conn) {
146 var proc *process
147
148 if len(args) > 0 {
149 name := args[0]
150
151 for _, p := range c.cmd.processes {
152 if name == p.Name {
153 proc = p
154 break
155 }
156 }
157 } else {
158 proc = c.cmd.processes[0]
159 }
160
161 if proc != nil {
162 fmt.Fprintf(conn, "%s %s\n", proc.tmux.Socket, proc.WindowID())
163 } else {
164 fmt.Fprintln(conn, "")
165 }
166}
167
168func (c *commandCenter) processEcho(conn net.Conn) {
169 c.cmd.output.Echo(conn)

Callers 1

handleConnectionMethod · 0.95

Calls 1

WindowIDMethod · 0.95

Tested by

no test coverage detected