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)
| 48 | // |
| 49 | // For non-interactive i/o you should use a Cmd (that is, a tea.Cmd). |
| 50 | func ExecProcess(c *exec.Cmd, fn ExecCallback) Cmd { |
| 51 | return Exec(wrapExecCommand(c), fn) |
| 52 | } |
| 53 | |
| 54 | // ExecCallback is used when executing an *exec.Command to return a message |
| 55 | // with an error, which may or may not be nil. |