1use ansi_term::{Color, Prefix, Style, Suffix};
2
3#[derive(Clone, Copy, Debug)]
4pub struct Designer {
5 style: Style,
6}
7
8impl Default for Designer {
9 fn default() -> Self {
10 Self {
11 style: Style::new(),
12 }
13 }
14}
15
16impl Designer {
17 pub fn command(&self) -> Self {
19 Self {
20 style: Style::new().bold(),
21 }
22 }
23
24 pub fn banner(&self) -> Self {
25 Self {
26 style: Style::new().fg(Color::Cyan).bold(),
27 }
28 }
29
30 pub fn message(&self) -> Self {
31 Self {
32 style: Style::new(),
33 }
34 }
35
36 pub fn parameter_name(&self) -> Self {
37 Self {
38 style: Style::new().fg(Color::Green),
39 }
40 }
41
42 pub fn parameter_value(&self) -> Self {
43 Self {
44 style: Style::new().fg(Color::Cyan),
45 }
46 }
47
48 pub fn doc(&self) -> Self {
49 Self {
50 style: Style::new(),
51 }
52 }
53
54 pub fn error(&self) -> Self {
55 Self {
56 style: Style::new(),
57 }
58 }
59
60 pub fn task_name(&self) -> Self {
61 Self {
62 style: Style::new().bold(),
63 }
64 }
65
66 pub fn variable(&self) -> Self {
67 self.task_name()
68 }
69
70 pub fn evariable(&self) -> Self {
71 self.task_name()
72 }
73
74 pub fn prefix(&self) -> Prefix {
75 self.style.prefix()
76 }
77
78 pub fn suffix(&self) -> Suffix {
79 self.style.suffix()
80 }
81}