gitignore-template-generator 0.2.1

A binary crate to generate templates for .gitignore files
Documentation
1
2
3
4
5
6
7
pub fn validate_no_commas(template_name: &str) -> Result<String, String> {
    if template_name.contains(',') {
        Err(String::from("Commas are not allowed in file names."))
    } else {
        Ok(template_name.to_string())
    }
}