mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
feat: Add --show-release-notes option to control release notes display
This commit is contained in:
parent
c057b00e08
commit
90a28e31e8
2 changed files with 14 additions and 1 deletions
|
@ -620,6 +620,12 @@ def get_parser(default_config_files, git_root):
|
||||||
help="Check for new aider versions on launch",
|
help="Check for new aider versions on launch",
|
||||||
default=True,
|
default=True,
|
||||||
)
|
)
|
||||||
|
group.add_argument(
|
||||||
|
"--show-release-notes",
|
||||||
|
action=argparse.BooleanOptionalAction,
|
||||||
|
help="Show release notes on first run of new version (default: None, ask user)",
|
||||||
|
default=None,
|
||||||
|
)
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
"--install-main-branch",
|
"--install-main-branch",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
|
|
|
@ -747,7 +747,14 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
coder.show_announcements()
|
coder.show_announcements()
|
||||||
|
|
||||||
if is_first_run:
|
if is_first_run:
|
||||||
io.offer_url(urls.release_notes, "Would you like to see what's new in this version?")
|
if args.show_release_notes is None:
|
||||||
|
show = io.confirm_ask("Would you like to see what's new in this version?")
|
||||||
|
else:
|
||||||
|
show = args.show_release_notes
|
||||||
|
|
||||||
|
if show:
|
||||||
|
io.tool_output(f"Opening release notes: {urls.release_notes}")
|
||||||
|
utils.open_url(urls.release_notes)
|
||||||
io.tool_output()
|
io.tool_output()
|
||||||
|
|
||||||
if args.show_prompts:
|
if args.show_prompts:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue