| Total Complexity | 2 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | from typing import List |
||
| 2 | |||
| 3 | from cleo import Application, Command |
||
| 4 | |||
| 5 | from kerapu.command.ShredderCommand import ShredderCommand |
||
| 6 | from kerapu.command.TestsetShredderCommand import TestShredderCommand |
||
| 7 | |||
| 8 | |||
| 9 | class KerapuApplication(Application): |
||
| 10 | """ |
||
| 11 | The Kerapu application. |
||
| 12 | """ |
||
| 13 | |||
| 14 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 15 | def __init__(self): |
||
| 16 | """ |
||
| 17 | Object constructor. |
||
| 18 | """ |
||
| 19 | Application.__init__(self, 'kerapu', '2.0.3') |
||
| 20 | |||
| 21 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 22 | def get_default_commands(self) -> List[Command]: |
||
| 23 | """ |
||
| 24 | Returns the default commands of this application. |
||
| 25 | |||
| 26 | :rtype: list[Command] |
||
| 27 | """ |
||
| 28 | commands = Application.get_default_commands(self) |
||
| 29 | |||
| 30 | # Kerapu: |
||
| 31 | commands.append(ShredderCommand()) |
||
| 32 | commands.append(TestShredderCommand()) |
||
| 33 | |||
| 34 | return commands |
||
| 35 | |||
| 37 |