1macro_rules! vec_of_strings {
2 ($($x:expr),*) => (vec![$($x.to_string()),*]);
3}
4
5pub enum Logos {
6 ArchLinux,
7 Ubuntu,
8 Windows,
9 Unknown(String)
10}
11
12pub fn get(logo: &Logos) -> Vec<String> {
13 match logo {
14 Logos::ArchLinux => vec_of_strings![
15 "\x1b[0;36m /\\ ",
16 "\x1b[0;36m /\\ \\ ",
17 "\x1b[0;36m / __ \\ ",
18 "\x1b[0;36m/_| |_\\"],
19 Logos::Ubuntu => vec_of_strings![
20 "\x1b[0;31m /‾‾〇\\ ",
21 "\x1b[0;31m〇 |",
22 "\x1b[0;31m| |",
23 "\x1b[0;31m \\__〇/ "],
24 Logos::Windows => vec_of_strings![
25 "\x1b[0;34m|‾‾|‾‾| ",
26 "\x1b[0;34m| | | ",
27 "\x1b[0;34m|‾‾|‾‾| ",
28 "\x1b[0;34m|__|__| "],
29 Logos::Unknown(distro) => vec_of_strings!["Distro ", "err ", distro, " "]
30 }
31}