Automatically install the new aider version

This commit is contained in:
Paul Gauthier 2024-07-12 21:38:45 +01:00
parent 6c2a168327
commit 6c38306eab
6 changed files with 49 additions and 35 deletions

View file

@ -389,12 +389,12 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
if right_repo_root:
return main(argv, input, output, right_repo_root, return_coder=return_coder)
if not args.skip_check_update:
check_version(io.tool_error)
if args.just_check_update:
update_available = check_version(io, just_check=True)
return 0 if not update_available else 1
if args.check_update:
update_available = check_version(lambda msg: None)
return 0 if not update_available else 1
check_version(io)
if args.models:
models.print_matching_models(io, args.models)