mirror of
https://github.com/herdrdev/herdr.git
synced 2026-09-22 00:01:06 +00:00
13 lines
399 B
Rust
13 lines
399 B
Rust
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")
|
|
}
|