mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
refactor: Simplify release notes display logic in main function
This commit is contained in:
parent
725b2fc16f
commit
12188b6684
1 changed files with 10 additions and 9 deletions
|
@ -745,17 +745,18 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
return coder
|
return coder
|
||||||
|
|
||||||
coder.show_announcements()
|
coder.show_announcements()
|
||||||
|
io.tool_output()
|
||||||
|
|
||||||
if is_first_run:
|
if args.show_release_notes is True:
|
||||||
if args.show_release_notes is None:
|
show = True
|
||||||
show = io.confirm_ask("Would you like to see what's new in this version?")
|
elif args.show_release_notes is None:
|
||||||
else:
|
show = is_first_run and io.confirm_ask("Would you like to see what's new in this version?")
|
||||||
show = args.show_release_notes
|
else: # args.show_release_notes is False
|
||||||
|
show = False
|
||||||
|
|
||||||
if show:
|
if show:
|
||||||
io.tool_output(f"Opening release notes: {urls.release_notes}")
|
io.tool_output(f"Opening release notes: {urls.release_notes}")
|
||||||
utils.open_url(urls.release_notes)
|
utils.open_url(urls.release_notes)
|
||||||
io.tool_output()
|
|
||||||
|
|
||||||
if args.show_prompts:
|
if args.show_prompts:
|
||||||
coder.cur_messages += [
|
coder.cur_messages += [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue