aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter.rs
blob: f64361e3fe717ac828c455a0994799e074fc2c0e (plain)
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
82
83
#[derive(Debug)]
pub struct OutputFormatter;

impl OutputFormatter {
    pub fn new(
        _decorated: bool,
        _styles: indexmap::IndexMap<
            String,
            crate::symfony::console::formatter::OutputFormatterStyle,
        >,
    ) -> Self {
        todo!()
    }

    pub fn format(&self, _message: &str) -> String {
        todo!()
    }

    pub fn is_decorated(&self) -> bool {
        todo!()
    }

    pub fn set_decorated(&mut self, _decorated: bool) {
        todo!()
    }

    pub fn escape(_text: &str) -> String {
        todo!()
    }

    pub fn escape_trailing_backslash(_text: &str) -> String {
        todo!()
    }

    pub fn set_style(
        &mut self,
        _name: &str,
        _style: crate::symfony::console::formatter::OutputFormatterStyle,
    ) {
        todo!()
    }

    pub fn has_style(&self, _name: &str) -> bool {
        todo!()
    }

    pub fn get_style(
        &self,
        _name: &str,
    ) -> crate::symfony::console::formatter::OutputFormatterStyle {
        todo!()
    }
}

impl crate::symfony::console::formatter::OutputFormatterInterface for OutputFormatter {
    fn is_decorated(&self) -> bool {
        self.is_decorated()
    }

    fn set_decorated(&mut self, decorated: bool) {
        self.set_decorated(decorated)
    }

    fn set_style(
        &mut self,
        name: &str,
        style: crate::symfony::console::formatter::OutputFormatterStyle,
    ) {
        self.set_style(name, style)
    }

    fn has_style(&self, name: &str) -> bool {
        self.has_style(name)
    }

    fn get_style(&self, name: &str) -> crate::symfony::console::formatter::OutputFormatterStyle {
        self.get_style(name)
    }

    fn format(&self, message: &str) -> String {
        self.format(message)
    }
}