use std::process::Command;
pub fn whyno_bin() -> String {
env!("CARGO_BIN_EXE_whyno").to_string()
}
pub fn current_username() -> String {
std::env::var("USER")
.or_else(|_| std::env::var("LOGNAME"))
.expect("cannot determine current username from USER or LOGNAME env vars")
}
pub fn run_whyno(args: &[&str]) -> std::process::Output {
Command::new(whyno_bin())
.args(args)
.env("NO_COLOR", "1")
.output()
.expect("failed to execute whyno binary")
}