1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
use ansi_term::{Color, Prefix, Style, Suffix};

#[derive(Clone, Copy, Debug)]
pub struct Designer {
    style: Style,
}

impl Default for Designer {
    fn default() -> Self {
        Self {
            style: Style::new(),
        }
    }
}

impl Designer {
    // Apply command styles
    pub fn command(&self) -> Self {
        Self {
            style: Style::new().bold(),
        }
    }

    pub fn banner(&self) -> Self {
        Self {
            style: Style::new().fg(Color::Cyan).bold(),
        }
    }

    pub fn message(&self) -> Self {
        Self {
            style: Style::new(),
        }
    }

    pub fn parameter_name(&self) -> Self {
        Self {
            style: Style::new().fg(Color::Green),
        }
    }

    pub fn parameter_value(&self) -> Self {
        Self {
            style: Style::new().fg(Color::Cyan),
        }
    }

    pub fn doc(&self) -> Self {
        Self {
            style: Style::new(),
        }
    }

    pub fn error(&self) -> Self {
        Self {
            style: Style::new(),
        }
    }

    pub fn task_name(&self) -> Self {
        Self {
            style: Style::new().bold(),
        }
    }

    pub fn variable(&self) -> Self {
        self.task_name()
    }

    pub fn evariable(&self) -> Self {
        self.task_name()
    }

    pub fn prefix(&self) -> Prefix {
        self.style.prefix()
    }

    pub fn suffix(&self) -> Suffix {
        self.style.suffix()
    }
}