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