(self, loop: asyncio.AbstractEventLoop)
| 37 | pass |
| 38 | |
| 39 | async def run(self, loop: asyncio.AbstractEventLoop) -> int: |
| 40 | try: |
| 41 | self.initialize_container() |
| 42 | return await self.execute(loop) |
| 43 | except ImportError as e: |
| 44 | print(f"Import error: {e}") |
| 45 | print("Make sure you're running this from the project root directory.") |
| 46 | return 1 |
| 47 | except Exception as e: |
| 48 | if self._log: |
| 49 | self._log.error(f"CLI command failed: {e}", error=e.__dict__) |
| 50 | else: |
| 51 | print(f"Error: {e}, type: {type(e)}, traceback: {e.__traceback__}") |
| 52 | return 1 |
| 53 | |
| 54 | @classmethod |
| 55 | def start(cls) -> None: |
no test coverage detected