cmd

Function cmd 

Source
pub fn cmd(program: impl AsRef<OsStr>) -> Command
Expand 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()?;