| Conditions | 1 |
| Total Lines | 24 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | 1 | from cleo import OutputFormatterStyle |
|
| 11 | 1 | def __init__(self, input, output): |
|
| 12 | """ |
||
| 13 | Object constructor. |
||
| 14 | |||
| 15 | :param cleo.inputs.input.Input input: The input object. |
||
| 16 | :param cleo.outputs.output.Output output: The output object. |
||
| 17 | """ |
||
| 18 | 1 | CleoStyle.__init__(self, input, output) |
|
| 19 | |||
| 20 | # Style for file system objects (e.g. file and directory names). |
||
| 21 | 1 | style = OutputFormatterStyle('green', None, ['bold']) |
|
| 22 | 1 | output.get_formatter().set_style('fso', style) |
|
| 23 | |||
| 24 | # Style for errors. |
||
| 25 | 1 | style = OutputFormatterStyle('red', None, ['bold']) |
|
| 26 | 1 | output.get_formatter().set_style('err', style) |
|
| 27 | |||
| 28 | # Style for warnings. |
||
| 29 | 1 | style = OutputFormatterStyle('yellow', None, ['bold']) |
|
| 30 | 1 | output.get_formatter().set_style('warn', style) |
|
| 31 | |||
| 32 | # Style for SDoc1 notices. |
||
| 33 | 1 | style = OutputFormatterStyle('yellow') |
|
| 34 | 1 | output.get_formatter().set_style('notice', style) |
|
| 35 | |||
| 37 |