use is_terminal::IsTerminal;
pub fn is_tty() -> bool {
std::io::stdout().is_terminal()
}
pub fn note(msg: &str) {
eprintln!("{msg}");
}
pub fn error(msg: &str) {
eprintln!("error: {msg}");
}
pub fn success(msg: &str) {
if is_tty() {
eprintln!("{msg}");
}
}
pub fn print_password(password: &str) {
println!("{password}");
}