Function open::with_command

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

Get a command that uses app to open path.

§Examples

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