aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/examples/brew-which.rb
AgeCommit message (Collapse)Author
2012-03-18Rename external commands directory from examples.Mike McQuaid
Fixes Homebrew/homebrew#10829.
2011-06-19brew-which: also check sbin and lib foldersAdam Vandenberg
2011-06-19which: allow <formulae> argsAdam Vandenberg
Also clean-up this external command in preparation for becoming a built-in command. Make which_versions available in Homebrew module so that it can be used by other commands in the future.
2010-08-08Move Pathname.starts_with? into PathnameAdam Vandenberg
2010-07-08External command "brew which"Adam Vandenberg
A work-in-progress command, "brew which" will show which versions of formulae you have installed based on what symlinks exist from HOMEBREW_PREFIX back into the Cellar. Thus, if you happen to have symlinks into two different versions of a brew in the Cellar (typically an error), both of those versions will be listed. This is a diagnostic command, but some of this code will be the basis for possible future better handling of multiple-versions-at-once.