mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
feat: Add cmd_map command to print the current repository map
This commit is contained in:
parent
e1ce4f1b9f
commit
8b517cac62
1 changed files with 7 additions and 0 deletions
|
@ -934,6 +934,13 @@ class Commands:
|
|||
except Exception as e:
|
||||
self.io.tool_error(f"Error processing clipboard content: {e}")
|
||||
|
||||
def cmd_map(self, args):
|
||||
"Print out the current repository map"
|
||||
repo_map = self.coder.get_repo_map()
|
||||
if repo_map:
|
||||
self.io.tool_output(repo_map)
|
||||
else:
|
||||
self.io.tool_output("No repository map available.")
|
||||
|
||||
def expand_subdir(file_path):
|
||||
file_path = Path(file_path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue