aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/uninstall.rb
AgeCommit message (Collapse)Author
2017-05-29Use `Formatter::pluralize` where possible.Markus Reiter
2017-04-02Document all short flags.Mike McQuaid
2016-12-31Revert "uninstall: remove nil requireds/dependents"Alyssa Ross
This reverts commit d7e72899e6f24dca5e02a734d5a4e64e39fc680e.
2016-12-30uninstall: don't comma-seperate kegs in exampleAlyssa Ross
The example command given in the dependency errors/warnings previously comma-seperated the kegs, which was incorrect syntax. This fixes that.
2016-12-30uninstall: better example in dependency warningAlyssa Ross
Previously, this only included a subset of all the kegs the user was trying to uninstall. With this change, all named formulae/kegs will be included in the example command.
2016-11-18uninstall: ignore deprecations when uninstalling.Mike McQuaid
Handle `MethodDeprecatedError` because we want people to be able to uninstall regardless of the content of their formula.
2016-11-15uninstall: remove nil requireds/dependentsMike McQuaid
These shouldn’t get here in the first place so this is a bit of a hack pending a better fix.
2016-11-14uninstall: style fixesAlyssa Ross
Works around Rubycop not liking method names that start with `is_` by changing convention from singular to plural. I think it's better that way anyway.
2016-11-14uninstall: clean up warningsAlyssa Ross
2016-11-14Warn developers when uninstalling a dependencyAlyssa Ross
Suggested in #1084. Made the existing warning output entirely to STDERR, because previously the first line went to STDERR and subsequent ones went to STDOUT.
2016-11-11uninstall: don't need kegs to exist for --force.Mike McQuaid
Otherwise there's an error which is a regression on previous functionality. This mirrors `rm -f` which doesn't fail if a file doesn't exist.
2016-10-25uninstall: document --ignore-dependenciesAlyssa Ross
2016-10-25uninstall: test should_check_for_dependents?Alyssa Ross
2016-10-25uninstall, keg: update styleAlyssa Ross
2016-10-25uninstall: remove duplicated methodAlyssa Ross
This was moved to Keg, but looks like I forgot to get rid of it here.
2016-10-25uninstall: call Formula#missing_dependencies directlyAlyssa Ross
2016-10-25uninstall: don't use unless ||Alyssa Ross
2016-10-25uninstall: only <=1 Diagnostic.missing_deps callAlyssa Ross
2016-10-25uninstall: style fixesAlyssa Ross
2016-10-25uninstall: allow dependent checks to be by-passedAlyssa Ross
Dependent can be bypassed with `--ignore-dependencies`. This is now the default for `HOMEBREW_DEVELOPER`s.
2016-10-25uninstall: check for dependents even with --forceAlyssa Ross
2016-10-25uninstall: reorganise codeAlyssa Ross
With the way uninstall is set up at the moment, it's pretty difficult to add functionality to both the --force and normal variants. Extracting the racks and kegs to be uninstalled before uninstalling them should make this easier.
2016-10-25uninstall: fix dependent order bugAlyssa Ross
2016-10-25uninstall: consistent spelling of "dependent"Alyssa Ross
@ilovezfs pointed out that Homebrew generally uses "dependent", rather than "dependant".
2016-10-25uninstall: better message when dependents remainAlyssa Ross
Suggested by @MikeMcQuaid
2016-10-25uninstall: refuse when dependants still installedAlyssa Ross
Closes #934.
2016-10-02Use `module_function` for commands.Markus Reiter
2016-09-21uninstall: improve pronoun for multiple version messageJoseph Frazier
When exactly two versions of a package were installed, the uninstall message should not read "Remove them all with...", since only one version remains. "Remove all versions with..." is flexible enough to avoid being interpreted as grammatically incorrect, and it still accurately describes the general behavior of `brew uninstall --force`.
2016-09-11cmd/uninstall: fix Rubocop warnings.Mike McQuaid
2016-04-10Add all the top level commentsMax Nordlund
2015-10-17uninstall: fix indentXu Cheng
2015-10-17uninstall: fix when Cellar doesn't existXu Cheng
2015-08-18uninstall: simplify logicXu Cheng
Also reduce unnecessary disk operations Closes Homebrew/homebrew#43024. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-17Suggest 'brew uninstall' everywhere for consistencyBaptiste Fontaine
Mixing 'brew remove' with 'brew uninstall' can confuse users. Closes Homebrew/homebrew#43026. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-17update opt for renamed formulaVlad Shablinsky
After the formula gets renamed oldname opt is created and it points to the linked keg. However if we then upgrade newname oldname opt still points to the same keg it pointed before upgrade. The commit fixes this behaviour thus that oldname opt links at the same keg opt point.
2015-08-11uninstall: fix --forceVlad Shablinsky
Closes Homebrew/homebrew#42814. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-10uninstall: change logic to handle renamesVlad Shablinsky
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-05-27uninstall: load formula from rackXu Cheng
Closes Homebrew/homebrew#39524. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-09uninstall: display file sizeXu Cheng
Closes Homebrew/homebrew#38475. Signed-off-by: Xu Cheng <xucheng@me.com>
2014-12-23uninstall: improve grammar for multiple version messageMisty De Meo
2014-11-27uninstall: notify on multiple versions removed.Mike McQuaid
Closes Homebrew/homebrew#34398. Closes Homebrew/homebrew#34445. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-06-24Rename Keg#fname to Keg#nameJack Nagel
2014-06-23Remove opt link in Keg#uninstallJack Nagel
2014-06-23Use Keg#uninstall to uninstall kegsJack Nagel
2014-06-22Move deprecated Formula class methods to compatJack Nagel
These have all been moved to Formulary.
2014-06-19Only "extend self" once on the Homebrew moduleJack Nagel
2014-06-09Stop joining symbols to pathnamesJack Nagel
Ruby 2.2's native Pathname#/ accepts only string-like objects.
2014-04-05Remove obsolete guards around canonical_name return valueJack Nagel
2013-05-15Simplify uninstall --forceJack Nagel