Function gix_command::prepare

source ·
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 stdin
  • stdout is captured for consumption by the caller
  • stderr is inherited to allow the command to provide context to the user