(tmux *tmuxClient, name string, color int, command string, output *multiOutput, canDie bool, autoRestart bool, stopSignal syscall.Signal)
| 39 | } |
| 40 | |
| 41 | func 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 | |
| 66 | func (p *process) WindowID() string { |
| 67 | return fmt.Sprintf("%s:%s", p.tmux.Session, p.Name) |
no test coverage detected
searching dependent graphs…