pub const NO_PROMPT: [(&str, &str); 2] =
[("GIT_TERMINAL_PROMPT", "0"), ("GH_PROMPT_DISABLED", "1")];
pub fn open_in_browser(url: &str) -> std::io::Result<()> {
let program = if cfg!(target_os = "macos") {
"open"
} else if cfg!(windows) {
"explorer"
} else {
"xdg-open"
};
let mut child = std::process::Command::new(program)
.arg(url)
.stdin(std::process::Stdio::null())
.stdout(std::process::Stdio::null())
.stderr(std::process::Stdio::null())
.spawn()?;
std::thread::spawn(move || child.wait());
Ok(())
}