Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

issue-13299 - better / more useful info output #13300

Closed
wants to merge 1 commit into from

2 participants

@jtimberman
  • restore older "name version" line to preserve compatibility
  • add separate lines in output for the formula name, stable version and devel version
@jtimberman jtimberman issue-13299 - better / more useful info output
* restore older "name version" line to preserve compatibility
* add separate lines in output for the formula name, stable version and devel version
98c3025
@jacknagel
Owner

Since discussion in #13299 is ongoing and we're not ready review a change, closing to keep discussion in one place.

@jacknagel jacknagel closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 9, 2012
  1. @jtimberman

    issue-13299 - better / more useful info output

    jtimberman authored
    * restore older "name version" line to preserve compatibility
    * add separate lines in output for the formula name, stable version and devel version
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 4 deletions.
  1. +6 −4 Library/Homebrew/cmd/info.rb
View
10 Library/Homebrew/cmd/info.rb
@@ -50,13 +50,15 @@ def info_formula f
exec 'open', github_info(f) if ARGV.flag? '--github'
specs = []
- stable = "stable #{f.stable.version}" if f.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 << f.devel.version if f.devel
specs << "HEAD" if f.head
- puts "#{f.name}: #{specs*', '}"
+ puts "#{f.name} #{f.version}"
+ puts "Formula name: #{f.name}"
+ puts "Stable version: #{stable}"
+ puts "Development version: #{specs*', '}"
puts f.homepage
Something went wrong with that request. Please try again.