Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(help): Skip version checks if it will cause permission prompts #663

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Oct 13, 2024

  1. feat(help): Skip version checks if it will cause permission prompts

    When a user hasn't granted net permissions to the default upgrade provider,
    they would be prompted to allow it when running the `help`/`--help` command.
    
    This commit adds an extra method to `Provider` where a provider should check
    any permissions it needs to return available versions have been pre-granted.
    
    If the necessary permissions have NOT been granted, the help command will
    skip checking for newer versions. The upgrade command is not affected.
    
    BREAKING CHANGE: Custom `Provider` implementations will have to implement `hasRequiredPermissions()`
    annervisser committed Oct 13, 2024
    Configuration menu
    Copy the full SHA
    75b5275 View commit details
    Browse the repository at this point in the history