ExecProcess runs the given *exec.Cmd in a blocking fashion, effectively pausing the Program while the command is running. After the *exec.Cmd exists the Program resumes. It's useful for spawning other interactive applications such as editors and shells from within a Program. To produce the command,
(c *exec.Cmd, fn ExecCallback)
| 52 | // |
| 53 | // For non-interactive i/o you should use a Cmd (that is, a tea.Cmd). |
| 54 | func ExecProcess(c *exec.Cmd, fn ExecCallback) Cmd { |
| 55 | return Exec(wrapExecCommand(c), fn) |
| 56 | } |
| 57 | |
| 58 | // ExecCallback is used when executing an *exec.Command to return a message |
| 59 | // with an error, which may or may not be nil. |