MCPcopy
hub / github.com/ChristianLempa/boilerplates / _register_repo_command

Function _register_repo_command

cli/__main__.py:146–156  ·  view source on GitHub ↗

Register repo command and return list of failures.

(logger: logging.Logger)

Source from the content-addressed store, hash-verified

144
145
146def _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
159def _register_module_classes(logger: logging.Logger) -> tuple[list, list[str]]:

Callers 1

init_appFunction · 0.85

Calls 2

register_cliMethod · 0.80
warningMethod · 0.45

Tested by

no test coverage detected