Shell state is piped between exec handlers and only in the end the runner writes the final output to the stdoutWriter. We need to check if that state needs to be resolved into an API request and handle the response appropriately. Note that this can happen in parallel if commands are separated with a
(fn func([]byte) ([]byte, error))
| 711 | // appropriately. Note that this can happen in parallel if commands are |
| 712 | // separated with a '&'. |
| 713 | func (o *terminalWriter) SetProcessFunc(fn func([]byte) ([]byte, error)) { |
| 714 | o.processFn = fn |
| 715 | } |