smart-password-manager-cli 0.1.0

Command line interface for smart password management built on smartpasslib. Generate deterministic passwords from secret phrases without storing them.
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}");
}