co-author 0.1.1

Co-Author your git commits from the command line
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::git::commit_body::CommitBody;

#[test]
fn should_produce_a_correctly_formatted_commit_body() {
	let message = "Irrelevant commit message";
	let author1 = String::from("author 1");
	let author2 = String::from("author 2");
	let commit_body = CommitBody::new(message, Vec::from([author1.clone(), author2.clone()]));

	assert!(commit_body
		.to_string()
		.eq(&format!("{}\n\n{}\n{}", message, author1, author2)));
}