simple-commit 1.0.2

A little CLI written in rust to improve your dirty commits into conventional ones.
1
2
3
4
5
6
7
pub fn valid_length(text: &str, min: usize, msg: &str) -> Result<(), String> {
    if text.len() > min {
        Ok(())
    } else {
        Err(msg.to_owned())
    }
}