use std::{ffi::OsStr, io, process::Command}; use crate::{CommandExt, IntoResult}; pub fn that>(path: T) -> io::Result<()> { Command::new("/bin/open") .arg(path.as_ref()) .status_without_output() .into_result() } pub fn with>(path: T, app: impl Into) -> io::Result<()> { Command::new(app.into()) .arg(path.as_ref()) .status_without_output() .into_result() }