From 6420943552bf2847ae5063c33cd94eb9cbf39560 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 5 Apr 2012 21:11:49 -0500 Subject: [PATCH] info: display available formula specs --- Library/Homebrew/cmd/info.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index 3fac9f4340..079794f27c 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?