Skip to main content

child_command

Function child_command 

Source
pub fn child_command(program: impl AsRef<OsStr>) -> Command
Expand description

Build a child-process command with no console window.

Re-exported from leviath_sys::child_command_async so the tool lane names it without reaching across crates at every call site. The decision lives there, once, for both command flavours - see that function for why it is made at construction rather than by a second call the caller can forget. The tokio twin of child_command.

tokio::process::Command wraps a std::process::Command, so as_std_mut reaches the one the flag is written on and both flavours share a single implementation rather than a second copy of the #[cfg].