Function gix_command::prepare
source · pub fn prepare(cmd: impl Into<OsString>) -> PrepareExpand 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
stdinis null to prevent blocking unexpectedly on consumption of stdinstdoutis captured for consumption by the callerstderris inherited to allow the command to provide context to the user
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.