pub fn with_command<T: AsRef<OsStr>>(path: T, app: impl Into<String>) -> CommandExpand 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());