info: display available formula specs
This commit is contained in:
parent
b6d44dd38a
commit
6420943552
@ -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?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user