diff --git a/aider/commands.py b/aider/commands.py index 5bfaac932..658aa17a9 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -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)