pub fn prepare(cmd: impl Into<OsString>) -> Prepare
Expand description
Prepare cmd
for spawning by configuring it with various builder methods.
Note that the default IO is configured for typical API usage, that is
stdin
is null to prevent blocking unexpectedly on consumption of stdinstdout
is captured for consumption by the callerstderr
is inherited to allow the command to provide context to the user
On Windows, terminal Windows will be suppressed automatically.
§Warning
When using this method, be sure that the invoked program doesn’t rely on the current working dir and/or
environment variables to know its context. If so, call instead Prepare::with_context()
to provide
additional information.