You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The brew drop [FORMULA|CASK...] command should remove a formula and/or cask from a Brewfile.
It will function as the opposite of the brew install and brew add relationship, being the equivalent of brew uninstall, but simply removing formulae, casks, and taps from a Brewfile instead of uninstalling them.
Previous content and additional discussion is in #1. This includes @boldandbrad's amazing idea to name the command brew drop.
Additionally, for when #4 is implemented, this command should also be able to remove mas app lines.
Important questions:
Should comments on the same line as the formula/cask be removed as well? Yes
Should regular expressions be used, or should the entire Brewfile be parsed into tokens? Regular expressions
The text was updated successfully, but these errors were encountered:
Should comments on the same line as the formula/cask be removed as well?
I think yes by default. I don't think I'd want to manually cleanup comments - kinda defeats the purpose. Also, I know many people commit their Brewfile to git, so history would be preserved if they needed to revert or check changes before commit.
For those who want to keep comments we can add an optional flag to the drop command.
It's definitely possible to do, but I've been running into a bit of trouble with parsing mas arguments as described in #4 so that they can also be removed. I'm also not going to be able to write more code for a few days soon, so this feature and #4 might take a bit longer than expected for me to implement.
The
brew drop [FORMULA|CASK...]
command should remove a formula and/or cask from a Brewfile.It will function as the opposite of the
brew install
andbrew add
relationship, being the equivalent ofbrew uninstall
, but simply removing formulae, casks, and taps from a Brewfile instead of uninstalling them.Previous content and additional discussion is in #1. This includes @boldandbrad's amazing idea to name the command
brew drop
.Additionally, for when #4 is implemented, this command should also be able to remove
mas
app lines.Important questions:
The text was updated successfully, but these errors were encountered: