blob: 98198dce5aba1bd7f158e6894c41033a773ebf85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
use std::{ffi::OsStr, process::Command};
/// Builds a subprocess whose stdio is controlled by the caller and which never opens a Windows console.
pub(crate) fn command(program: impl AsRef<OsStr>) -> Command {
let mut command = Command::new(program);
crate::platform::configure_background_command(&mut command);
command
}
pub(crate) fn curl_command() -> Command {
command("curl")
}
|