git-gamble 2.14.1

blend TDD + TCR to make sure to develop the right thing 😌, baby step by baby step πŸ‘ΆπŸ¦Ά
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::message::Message;

use super::gamble_result::GambleError;

pub(crate) fn git_is_required() -> GambleError {
	GambleError {
		messages: vec![
			Message::Info("`git-gamble` uses `git` internally to work normally".to_string()),
			Message::Info("`git-gamble` doesn't repackage `git`, it uses the one installed on your system".to_string()),
			Message::Warn("[Install `git` manually](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)".to_string()),
			Message::Info("Make sure it is available in [your `$PATH`](https://superuser.com/a/284361), you can check it with this command `git --version`".to_string()),
		],
		code: 1,
	}
}