async_cmd

Function async_cmd 

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

Create a [tokio::process::Command] that will not open a console window on Windows.

Identical to tokio::process::Command::new(program) on macOS and Linux.

§Usage

use gglib_core::utils::process::async_cmd;

let child = async_cmd("llama-server").arg("--port").arg("8080").spawn()?;