(self, cmd_name, args)
| 285 | return commands |
| 286 | |
| 287 | def do_run(self, cmd_name, args): |
| 288 | cmd_name = cmd_name.replace("-", "_") |
| 289 | cmd_method_name = f"cmd_{cmd_name}" |
| 290 | cmd_method = getattr(self, cmd_method_name, None) |
| 291 | if not cmd_method: |
| 292 | self.io.tool_output(f"Error: Command {cmd_name} not found.") |
| 293 | return |
| 294 | |
| 295 | try: |
| 296 | return cmd_method(args) |
| 297 | except ANY_GIT_ERROR as err: |
| 298 | self.io.tool_error(f"Unable to complete {cmd_name}: {err}") |
| 299 | |
| 300 | def matching_commands(self, inp): |
| 301 | words = inp.strip().split() |
no test coverage detected