one_command/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
use std::ffi::OsStr;

pub mod blocking;

/// Execute commands on the Windows platform,
/// without opening a window to maintain consistency with other system behaviors.
pub struct Command;

impl Command {
    pub fn new<S: AsRef<OsStr>>(program: S) -> async_process::Command {
        blocking::Command::new(program).into()
    }
}