MCPcopy
hub / github.com/Aider-AI/aider / do_run

Method do_run

aider/commands.py:287–298  ·  view source on GitHub ↗
(self, cmd_name, args)

Source from the content-addressed store, hash-verified

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()

Callers 1

runMethod · 0.95

Calls 2

tool_outputMethod · 0.45
tool_errorMethod · 0.45

Tested by

no test coverage detected