use std::path::Path;
use std::process::Command;
#[cfg(target_os = "macos")]
static OPEN_COMMAND: &str = "open";
#[cfg(target_os = "linux")]
static OPEN_COMMAND: &str = "xdg-open";
#[cfg(target_os = "windows")]
static OPEN_COMMAND: &str = "explorer";
pub fn open_in_folder<P: AsRef<Path>>(folder: P) {
Command::new(OPEN_COMMAND)
.arg(folder.as_ref())
.spawn()
.unwrap();
}