mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 22:04:59 +00:00
Refactor the cmd_ commands into Coder
This commit is contained in:
parent
475bc486d2
commit
4e9119a0e0
2 changed files with 16 additions and 11 deletions
|
@ -40,7 +40,7 @@ class Coder:
|
|||
else:
|
||||
self.console = Console(force_terminal=True, no_color=True)
|
||||
|
||||
self.commands = Commands(self.console)
|
||||
self.commands = Commands(self.console, self)
|
||||
|
||||
self.main_model = main_model
|
||||
if main_model == "gpt-3.5-turbo":
|
||||
|
@ -475,3 +475,7 @@ class Coder:
|
|||
self.last_modified = self.get_last_modified()
|
||||
|
||||
return commit_hash, commit_message
|
||||
|
||||
def cmd_ls(self, args):
|
||||
"List files and show their chat status"
|
||||
print("ls")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue