mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
fix: Correct command execution logic
This commit is contained in:
parent
9ed732959e
commit
85fa78f5a6
1 changed files with 3 additions and 2 deletions
|
@ -206,8 +206,9 @@ class Commands:
|
||||||
self.coder.event(f"command_{command}")
|
self.coder.event(f"command_{command}")
|
||||||
return self.do_run(command, rest_inp)
|
return self.do_run(command, rest_inp)
|
||||||
elif first_word in matching_commands:
|
elif first_word in matching_commands:
|
||||||
self.coder.event(f"command_{first_word}")
|
command = first_word[1:]
|
||||||
return self.do_run(first_word[1:], rest_inp)
|
self.coder.event(f"command_{command}")
|
||||||
|
return self.do_run(command, rest_inp)
|
||||||
elif len(matching_commands) > 1:
|
elif len(matching_commands) > 1:
|
||||||
self.io.tool_error(f"Ambiguous command: {', '.join(matching_commands)}")
|
self.io.tool_error(f"Ambiguous command: {', '.join(matching_commands)}")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue