Repository navigation
feat(cli): add --check option to only check for an available update - #784
Open
tobiasKaminsky wants to merge 2 commits into
Open
tobiasKaminsky wants to merge 2 commits into
tobiasKaminsky wants to merge 2 commits into
Conversation
Prints the current and available version in a stable, script friendly format without updating, e.g. to only apply updates within the current major version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Member
|
Arguably this would address #319. Question is I guess: do we want to also include no major logic and are there any downsides to doing so? |
Member
Author
|
This check is broader, so anyone can then do whatever they want. "Only" skip major is maybe too restricted. |
Collaborator
|
I feel like most of the functionality is already in |
Member
Author
|
Never heard about updater:check so far, but yeah, if this is easier/better maintanable, totally up for it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
--checkoption toupdater.pharthat only checks for an available update and prints the result in a stable, script-friendly format, without updating:(
Available version: noneif there is no update.)Use case: let admins script updates within the current major version only (patch updates), by comparing the major of the current and available versions before running the updater.
Updater: keep the offered version and exposegetAvailableVersion()/getAvailableVersionString()(index.php regenerated)UpdateCommand: new--checkoption🤖 Generated with Claude Code