Function open::commands

source ·
pub fn commands(path: impl AsRef<OsStr>) -> Vec<Command>
Expand description

Get multiple commands that open path with the default application.

Each command represents a launcher to try.

§Examples

let path = "http://rust-lang.org";
assert!(open::commands(path)[0].status()?.success());