Total Complexity | 1 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | 1 | from cleo.io.io import IO |
|
2 | |||
3 | |||
4 | 1 | class SDocIO(IO): |
|
5 | """ |
||
6 | IO object with title. |
||
7 | """ |
||
8 | |||
9 | # ------------------------------------------------------------------------------------------------------------------ |
||
10 | 1 | def title(self, message: str) -> None: |
|
11 | """ |
||
12 | Writes a title to the output. |
||
13 | |||
14 | :param str message: The title of a section. |
||
15 | """ |
||
16 | 1 | self.write_line(['<title>%s</>' % message, |
|
17 | '<title>%s</>' % ('=' * len(message)), |
||
18 | '']) |
||
19 | |||
21 |