aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-04-05 21:11:49 -0500
committerJack Nagel2012-07-04 22:47:33 -0500
commit6420943552bf2847ae5063c33cd94eb9cbf39560 (patch)
tree537a033160a883a1389b11857c3a6ea0a8266dd6 /Library
parentb6d44dd38a69889c3e8f380d099fc9cae0decfb8 (diff)
downloadbrew-6420943552bf2847ae5063c33cd94eb9cbf39560.tar.bz2
info: display available formula specs
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/info.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb
index 3fac9f434..079794f27 100644
--- a/Library/Homebrew/cmd/info.rb
+++ b/Library/Homebrew/cmd/info.rb
@@ -49,7 +49,15 @@ module Homebrew extend self
def info_formula f
exec 'open', github_info(f) if ARGV.flag? '--github'
- puts "#{f.name} #{f.version}"
+ specs = []
+ stable = "stable #{f.stable.version}" if f.stable
+ stable += " (bottled)" if f.bottle and bottles_supported?
+ specs << stable if stable
+ specs << "devel #{f.devel.version}" if f.devel
+ specs << "HEAD" if f.head
+
+ puts "#{f.name}: #{specs*', '}"
+
puts f.homepage
if f.keg_only?