mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
feat: Add /map-refresh command to force refresh of repository map
This commit is contained in:
parent
27a7102ad4
commit
17335b1865
1 changed files with 8 additions and 0 deletions
|
@ -1045,6 +1045,14 @@ class Commands:
|
|||
else:
|
||||
self.io.tool_output("No repository map available.")
|
||||
|
||||
def cmd_map_refresh(self, args):
|
||||
"Force a refresh of the repository map and print it out"
|
||||
repo_map = self.coder.get_repo_map(force_refresh=True)
|
||||
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