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

Function newProcess

start/process.go:41–64  ·  view source on GitHub ↗
(tmux *tmuxClient, name string, color int, command string, output *multiOutput, canDie bool, autoRestart bool, stopSignal syscall.Signal)

Source from the content-addressed store, hash-verified

39}
40
41func newProcess(tmux *tmuxClient, name string, color int, command string, output *multiOutput, canDie bool, autoRestart bool, stopSignal syscall.Signal) *process {
42 out, in := io.Pipe()
43
44 proc := &process{
45 output: output,
46 tmux: tmux,
47
48 stopSignal: stopSignal,
49 canDie: canDie,
50 canDieNow: canDie,
51 autoRestart: autoRestart,
52
53 in: in,
54 out: out,
55
56 Name: name,
57 Color: color,
58 Command: command,
59 }
60
61 tmux.AddProcess(proc)
62
63 return proc
64}
65
66func (p *process) WindowID() string {
67 return fmt.Sprintf("%s:%s", p.tmux.Session, p.Name)

Callers 1

newCommandFunction · 0.85

Calls 1

AddProcessMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…