()
| 57 | } |
| 58 | |
| 59 | func (p *process) Run() { |
| 60 | p.output.PipeOutput(p) |
| 61 | defer p.output.ClosePipe(p) |
| 62 | |
| 63 | ensureKill(p) |
| 64 | |
| 65 | p.writeLine([]byte("\033[1mRunning...\033[0m")) |
| 66 | |
| 67 | if err := p.Cmd.Run(); err != nil { |
| 68 | p.writeErr(err) |
| 69 | } else { |
| 70 | p.writeLine([]byte("\033[1mProcess exited\033[0m")) |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | func (p *process) Interrupt() { |
| 75 | if p.Running() { |
no test coverage detected