mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
wip
This commit is contained in:
parent
b2846fa73a
commit
7fc02ccd66
1 changed files with 30 additions and 27 deletions
|
@ -156,11 +156,14 @@ class Commands:
|
||||||
def cmd_add(self, args):
|
def cmd_add(self, args):
|
||||||
"Add matching files to the chat session"
|
"Add matching files to the chat session"
|
||||||
|
|
||||||
|
from aider.dump import dump
|
||||||
|
|
||||||
added_fnames = []
|
added_fnames = []
|
||||||
files = self.coder.get_all_relative_files()
|
files = self.coder.get_all_relative_files()
|
||||||
for word in args.split():
|
for word in args.split():
|
||||||
matched_files = [file for file in files if word in file]
|
matched_files = [file for file in files if word in file]
|
||||||
|
|
||||||
|
dump(word, matched_files)
|
||||||
if not matched_files:
|
if not matched_files:
|
||||||
if self.coder.repo is not None:
|
if self.coder.repo is not None:
|
||||||
create_file = Confirm.ask(
|
create_file = Confirm.ask(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue