Skip to content

cli: add option to suppress new version warning - #1300

Closed
Benjamin Christopher Simmonds (benibenj) wants to merge 1 commit into
mainfrom
benibenj/agents/easy-issue-implementation-pr
Closed

cli: add option to suppress new version warning#1300
Benjamin Christopher Simmonds (benibenj) wants to merge 1 commit into
mainfrom
benibenj/agents/easy-issue-implementation-pr

Conversation

@benibenj

Copy link
Copy Markdown
Contributor

Summary

  • add a global --no-new-version-warning option
  • skip the latest-version lookup and warning when the option is set
  • preserve the existing warning behavior by default for every command

Fixes #1201

Validation

  • npm run compile
  • npm test (179 passing; one unrelated version test hit its 5-second timeout and cleanup failed)
  • npx mocha --grep "should bump patch version" (passes in isolation)
  • verified the flag is accepted before and after subcommands
  • verified the version lookup runs by default and is skipped with the flag

Allow CI and other automated environments to opt out of the latest-version warning with --no-new-version-warning. Closes #1201.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please add --no-new-version-warning option

2 participants