changenog 2.0.3

Zero-config changelog generator with monorepo support.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::constant::LOG_PREFIX;

pub fn log_exit(msg: &str, success: bool) {
    let formatted_msg = format!("{}.  exiting...", format_msg(msg));

    if success {
        println!("{formatted_msg}")
    } else {
        eprintln!("{formatted_msg}")
    }
}

fn format_msg(msg: &str) -> String {
    format!("{} {}", LOG_PREFIX, msg)
}