mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 18:54:59 +00:00
fix: Improve confirm dialog messages
This commit is contained in:
parent
72ebc7868a
commit
ba746dd211
5 changed files with 14 additions and 20 deletions
|
@ -68,14 +68,10 @@ Newer aider version v{latest_version} is available. To upgrade, run:
|
|||
|
||||
cmd = utils.get_pip_install(["--upgrade", "aider-chat"])
|
||||
|
||||
text = f"""
|
||||
Newer aider version v{latest_version} is available. To upgrade, run:
|
||||
text = f"Newer aider version v{latest_version} is available. To upgrade, run:"
|
||||
|
||||
{' '.join(cmd)}
|
||||
"""
|
||||
io.tool_error(text)
|
||||
|
||||
if io.confirm_ask("Run pip install?"):
|
||||
if io.confirm_ask("Run pip install?", subject=' '.join(cmd)):
|
||||
success, output = utils.run_install(cmd)
|
||||
if success:
|
||||
io.tool_output("Re-run aider to use new version.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue