4 Commits

Author SHA1 Message Date
Adam Vandenberg
77e01d69ec brew-which: also check sbin and lib folders 2011-06-19 22:12:44 -07:00
Adam Vandenberg
2b9c6def6d which: allow <formulae> args
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.
2011-06-19 21:58:32 -07:00
Adam Vandenberg
013fe4bf38 Move Pathname.starts_with? into Pathname 2010-08-08 09:13:27 -07:00
Adam Vandenberg
6b1a8be58e External command "brew which"
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.
2010-07-08 22:41:51 -07:00