Conditions | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | 1 | from cleo.helpers import argument |
|
16 | def handle(self) -> int: |
||
17 | 1 | """ |
|
18 | Executes constants command when StratumCommand is activated. |
||
19 | 1 | """ |
|
20 | 1 | self._read_config_file() |
|
21 | |||
22 | 1 | factory = self._create_backend_factory() |
|
23 | 1 | worker = factory.create_routine_wrapper_generator_worker(self._config, self._io) |
|
24 | 1 | ||
25 | 1 | if not worker: |
|
26 | self._io.title('Wrapper') |
||
27 | 1 | self._io.error('<error>Wrapper command is not implemented by the backend</>') |
|
28 | return -1 |
||
29 | |||
30 | return worker.execute() |
||
31 | |||
33 |