pub fn new(
        cmd: &mut process::Command,
    ) -> Result<CommandReader, CommandError> {
        CommandReaderBuilder::new().build(cmd)
    }
/// Create a new streaming reader for the given command using the default
/// configuration.
///
/// The caller should set everything that's required on the given command
/// before building a reader, such as its arguments, environment and
/// current working directory. Settings such as the stdout and stderr (but
/// not stdin) pipes will be overridden so that they can be controlled by
/// the reader.
///
/// If there was a problem spawning the given command, then its error is
/// returned.
///
/// If the caller requires additional configuration for the reader
/// returned, then use
/// [`CommandReaderBuilder`](struct.CommandReaderBuilder.html).
Create a new streaming reader for the given command using the default
configuration.

The caller should set everything that's required on the given command
before building a reader, such as its arguments, environment and
current working directory. Settings such as the stdout and stderr (but
not stdin) pipes will be overridden so that they can be controlled by
the reader.

If there was a problem spawning the given command, then its error is
returned.

If the caller requires additional configuration for the reader
returned, then use
[`CommandReaderBuilder`](struct.CommandReaderBuilder.html).
Create a new streaming reader for the given command using the default configuration . The caller should set everything that ' s required on the given command before building a reader such as its arguments environment and current working directory . Settings such as the stdout and stderr ( but not stdin ) pipes will be overridden so that they can be controlled by the reader . If there was a problem spawning the given command then its error is returned . If the caller requires additional configuration for the reader returned then use [ ` CommandReaderBuilder ` ] ( struct . CommandReaderBuilder . html ) .
pub fn new(
        cmd: &mut process::Command,
    ) -> Result<CommandReader, CommandError> {
        CommandReaderBuilder::new().build(cmd)
    }
pub fn new ( cmd : & mut process :: Command , ) -> Result < CommandReader , CommandError > { CommandReaderBuilder :: new ( ) . build ( cmd ) }
Create a new streaming reader for the given command using the default
configuration.
Create a new streaming reader for the given command using the default configuration .
cmd
&mut process::Command
cmd
&mut process::Command