aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/info.rb
AgeCommit message (Collapse)Author
2013-01-14info: sort conflicts consistentlyJack Nagel
2013-01-14Restore keg-only caveatsJack Nagel
Fixes Homebrew/homebrew#16989.
2013-01-02Add caveats class and use in brew info.Mike McQuaid
Probably a better approach than reverted e721c7. Fixes Homebrew/homebrew#16604.
2012-12-16Revert "Add launchctl_instructions method"Jack Nagel
This code makes assumptions about the existence of prefix which are valid in the context of the installer, but not necessarily in the context of `brew info`, thus `brew info` on an outdated formula errors out. This reverts commit e5b53dd64b769b67805d1054d906f7083939d905.
2012-12-16Add launchctl_instructions methodLorenzo Manacorda
Closes Homebrew/homebrew#16604. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-12-04propert version sort in `info` commandMislav Marohnić
Closes Homebrew/homebrew#16382. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-17info: Add JSON outputMisty De Meo
Output JSON with the --json=v1 option. Output is in an array, and supports one or more formulae (or all, with the --all option). Why 'v1'? The format is unstable, presumably we'll deprecate it someday. It should be solid by Homebrew 1.0. Closes Homebrew/homebrew#13299.
2012-08-25Miscellaneous bottle code cleanup.Mike McQuaid
2012-08-12Add :when_xquartz_installed as a keg-only reasonJack Nagel
Using :when_xquartz_installed will tell the keg-only machinery to activate if XQuartz is installed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-09Fix info/options for new options dslAdam Vandenberg
2012-08-07Simplify conditionalJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-07Simplify printing conflicts in `brew info`Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-07fix info commandAdam Vandenberg
2012-08-06Don't error out if never `brew updated`Max Howell
Fixes Homebrew/homebrew#12944.
2012-08-04Show options for foo with `brew info foo`Max Howell
About time right?
2012-07-30Add conflicts_with DSL methodMisty De Meo
conflicts_with is a thin wrapper around Requirement which simplifies marking conflicts between formulae. Closes Homebrew/homebrew#13687. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-04info: display available formula specsJack Nagel
2012-05-13Use 'which' helper method moreJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-15info: handle git:// URLs in origin remoteMaurice Kelly
The URL being constructed is only able to extract the correct username when git@ or https:// URLs are found as the origin remote. This change allows git:// to be used as well. Signed-off-by: Maurice Kelly <osv-github@chatswood.org.uk> Closes Homebrew/homebrew#11670. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-06info: output correct URL for tapped dupesJack Nagel
Tapped formulae that dupe those in core now display the correct URL when invoked like `brew info homebrew/dupes/openssl`. This also fixes the broken `brew info` test. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-29info: always indicate if a keg is linkedJack Nagel
We mark the linked keg with an asterisk when multiple kegs exist, but not when there is only a single keg. Start marking even in this case, giving consistent behavior and a reliable indicate of the link status. Fixes Homebrew/homebrew#11300. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-16`brew info` understands tapsMax Howell
Note I removed some of the code that changed the URL to be that of the github.user. Because this doesn't make any sense really. We want people to reference the commit history for whatever fork of homebrew they have checked out. So this is now what it does.
2012-01-03info: always mark currently linked keg with *Jack Nagel
When multiple kegs are installed, `brew info` marks a keg with an asterisk if f.installed_prefix == keg, but this is only true if either HEAD or the newest version of the formula is installed. This isn't always useful, so let's mark the currently linked keg with an asterisk regardless of the version. Obviously, keg-only formula will never be marked, but this is probably a feature. When multiple keg-only kegs exist, chances are that they are each being utilized by something, so there isn't really a "used" and "unused" version. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-03info: display used options for all installed kegsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-20Omit empty caveatsAdam Vandenberg
2011-11-13info: display used options for installed formulaeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-16Centralize definition of `rack` in formula.rbCharlie Sharpsteen
`rack` is a commonly used alias for `formula.prefix.parent`---so common that it gets defined and used quite a bit. This patch makes `rack` an official method of the `Formula` class.
2011-08-11Add keg-only text to `brew info` outputJack Nagel
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-16Fix brew-info when on branch master and github.user setJack Nagel
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-18Fixed reading branch nameSebastian Staudt
The git command now uses --git-dir instead of --work-tree. Using --work-tree won't work if you are inside another Git repository. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-14brew info should fetch remote formula infoJoshua Peek
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12Use + instead of /.Adam Vandenberg
2011-03-12Refactor the brew command into one file per commandMax Howell
The code was sucking. To the extent that maintenance was hard. It's a lot easier to work with code that is sensibly split at sensible boundaries. So now it is more like that. But the refactor is minimal. Because we don't want you to have more merge hell than absolutely necessary. If you merge you will need to pay attention to brew.h.rb (as it is deleted) and bin/brew (as command logic is gone). It will be painful, but you will just have to help git out by moving any changes around manually. Note compatibility.rb. It ensures that any function renames or removals don't break anything. We're pretty serious about backwards compatibility. And that's because we encourage you to hack around with the innards. And we couldn't do that if we would then just make stuff disappear behind your back.