with_command

Function with_command 

Source
pub fn with_command<T: AsRef<OsStr>>(path: T, app: impl Into<String>) -> Command
Expand description

Get a command that uses app to open path.

ยงExamples

let path = "http://rust-lang.org";
assert!(win_open::with_command(path, "app").status()?.success());