Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Conversation

carlocab
Copy link
Member

@carlocab carlocab commented Mar 7, 2025

Part of #818

@carlocab carlocab self-assigned this Mar 7, 2025
@carlocab carlocab changed the title Implement brew bundle remove [WIP] Implement brew bundle remove Mar 10, 2025
@carlocab carlocab marked this pull request as ready for review March 10, 2025 08:06
@carlocab carlocab requested a review from Copilot March 10, 2025 08:06
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR implements a new "brew bundle remove" command to allow removal of entries from the Brewfile. Key changes include:

  • Addition of a test case for the remove command in spec/bundle/commands/remove_command_spec.rb.
  • Implementation of the remove logic in lib/bundle/remover.rb and its exposure via lib/bundle/commands/remove.rb.
  • Updates in cmd/bundle.rb and lib/bundle.rb to integrate the new "remove" subcommand.

Reviewed Changes

File Description
spec/bundle/commands/remove_command_spec.rb Adds tests to verify removal of entries from a Brewfile.
lib/bundle/remover.rb Implements the removal functionality from the Brewfile using regex filtering.
lib/bundle/commands/remove.rb Forwards the remove call to the Remover module.
cmd/bundle.rb Updates subcommand handling to include "remove" and maps type flags accordingly.
lib/bundle.rb Requires new modules to support the remove functionality.

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good so far!

Part of #818

Co-authored-by: Copilot <[email protected]>
@carlocab carlocab merged commit 679f2a4 into master Mar 11, 2025
5 checks passed
@carlocab carlocab deleted the bundle-remove branch March 11, 2025 09:09
carlocab added a commit that referenced this pull request Mar 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants