mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
feat: add browser URL launch with user confirmation prompt
This commit is contained in:
parent
763724ed4e
commit
fe3dbba1d9
1 changed files with 2 additions and 1 deletions
|
@ -367,7 +367,8 @@ def sanity_check_repo(repo, io):
|
|||
io.tool_output("You may be able to convert your repo: git update-index --index-version=2")
|
||||
io.tool_output("Or run aider --no-git to proceed without using git.")
|
||||
#ai ask if the user wants to open the url!
|
||||
io.tool_output(urls.git_index_version)
|
||||
if io.confirm_ask("Open documentation url for more info?", subject=urls.git_index_version):
|
||||
webbrowser.open(urls.git_index_version)
|
||||
return False
|
||||
|
||||
io.tool_error("Unable to read git repository, it may be corrupt?")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue