pub fn cmd(program: impl AsRef<OsStr>) -> CommandExpand description
Create a std::process::Command that will not open a console window on Windows.
Identical to std::process::Command::new(program) on macOS and Linux.
§Usage
ⓘ
use gglib_core::utils::process::cmd;
let output = cmd("nvidia-smi").arg("--list-gpus").output()?;