Skip to main content

exec_streaming

Function exec_streaming 

Source
pub fn exec_streaming(
    command: &str,
    opts: ExecOptions,
) -> Result<(Receiver<OutputLine>, JoinHandle<ExecOutput>), Error>
Expand description

Execute a command and stream output lines through a channel.

Returns a receiver for output lines and a join handle that resolves to the final ExecOutput when the command completes.