Register repo command and return list of failures.
(logger: logging.Logger)
| 144 | |
| 145 | |
| 146 | def _register_repo_command(logger: logging.Logger) -> list[str]: |
| 147 | """Register repo command and return list of failures.""" |
| 148 | failed = [] |
| 149 | try: |
| 150 | logger.debug("Registering repo command") |
| 151 | repo.register_cli(app) |
| 152 | except Exception as e: |
| 153 | error_info = f"Repo command registration failed: {e!s}" |
| 154 | failed.append(error_info) |
| 155 | logger.warning(error_info) |
| 156 | return failed |
| 157 | |
| 158 | |
| 159 | def _register_module_classes(logger: logging.Logger) -> tuple[list, list[str]]: |
no test coverage detected