mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 04:35:00 +00:00
feat: Add --upgrade argument to upgrade aider to the latest version
This commit is contained in:
parent
fa74736e02
commit
17c2626f39
2 changed files with 10 additions and 0 deletions
|
@ -509,6 +509,12 @@ def get_parser(default_config_files, git_root):
|
||||||
help="Install the latest version from the main branch",
|
help="Install the latest version from the main branch",
|
||||||
default=False,
|
default=False,
|
||||||
)
|
)
|
||||||
|
group.add_argument(
|
||||||
|
"--upgrade",
|
||||||
|
action="store_true",
|
||||||
|
help="Upgrade aider to the latest version from PyPI",
|
||||||
|
default=False,
|
||||||
|
)
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
"--apply",
|
"--apply",
|
||||||
metavar="FILE",
|
metavar="FILE",
|
||||||
|
|
|
@ -434,6 +434,10 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
success = install_from_main_branch(io)
|
success = install_from_main_branch(io)
|
||||||
return 0 if success else 1
|
return 0 if success else 1
|
||||||
|
|
||||||
|
if args.upgrade:
|
||||||
|
success = install_upgrade(io)
|
||||||
|
return 0 if success else 1
|
||||||
|
|
||||||
if args.check_update:
|
if args.check_update:
|
||||||
check_version(io, verbose=args.verbose)
|
check_version(io, verbose=args.verbose)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue