| Total Complexity | 1 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """ |
||
| 16 | class LoadHostCommand(Command): |
||
| 17 | """ |
||
| 18 | Loads the host. |
||
| 19 | """ |
||
| 20 | |||
| 21 | name = 'load_host' |
||
| 22 | |||
| 23 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 24 | def handle(self): |
||
| 25 | """ |
||
| 26 | Executes the load host command. |
||
| 27 | """ |
||
| 28 | self._io = EnarkshStyle(self.input, self.output) |
||
|
|
|||
| 29 | |||
| 30 | reader = LoadHost() |
||
| 31 | reader.main() |
||
| 32 | |||
| 34 |
It is generally a good practice to initialize all attributes to default values in the
__init__method: