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

Add Pre-Upgrade List and Confirmation Prompt for Homebrew (brew_formula and brew_cask) #990

Open
ylluminate opened this issue Nov 25, 2024 · 0 comments
Labels
C-feature request New feature request

Comments

@ylluminate
Copy link

I want to suggest that lists and a confirmation could be useful

It could look something like this:
example

Which tool is this about?

This specifically applies to Homebrew (brew_formula and brew_cask) within Topgrade but could be extended to other updaters later.

What should Topgrade do?

  1. Detect outdated packages using brew outdated --greedy.
  2. Display a clear, bullet-point list of outdated brew_formula and brew_cask packages.
  3. Prompt the user to confirm upgrades with options for:
    • A single confirmation for all updates.
    • Per-stage confirmations (e.g., brew_formula and brew_cask separately).

Commands for this step:

  • Detect outdated packages:
    brew outdated --greedy  
  • Upgrade after confirmation as per usual.

Confirmation Options:

  • A confirmation prompt (e.g., "Proceed with the updates? (Y/n)").
  • A --yes flag for fully automated updates.

More information

This feature improves transparency for Homebrew updates and could later be applied to other updaters like APT or pacman. Testing would ensure compatibility on macOS and Linux, with flexibility for user preferences on single or per-stage confirmations.

@ylluminate ylluminate added the C-feature request New feature request label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature request New feature request
Projects
None yet
Development

No branches or pull requests

1 participant