co-author 0.1.3

Co-Author your git commits from the command line
1
2
3
4
5
6
7
8
9
use crate::authors::author::Author;

pub fn to_author(line: &str) -> Option<Author> {
	let fields: Vec<&str> = line.split(',').collect();
	if fields.len() != 3 {
		return None;
	}
	Some(Author::from(fields[0], fields[1], fields[2]))
}