diff options
| author | Max Howell | 2010-03-09 02:13:33 +0000 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-18 13:52:01 -0700 |
| commit | 12db10032c5f3323eab1af280a75b0cba5d2f07b (patch) | |
| tree | 36bd4d863168967474d20646ccad8e8c7203f6ee /Library | |
| parent | 8d0a30cfdcbe8b666b30e9e18522e8d15a614cef (diff) | |
| download | homebrew-12db10032c5f3323eab1af280a75b0cba5d2f07b.tar.bz2 | |
brew.h info takes a formula parameter rather than a string
* Preference is for commands to take instantiated formulae as parameters
rather than formula names, so alias resolution can be centralized.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew.h.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 1742c6607..a8c8c365f 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -185,12 +185,9 @@ def github_info name return "http://github.com/#{user}/homebrew/commits/#{branch}/Library/Formula/#{formula_name}" end -def info name - require 'formula' - +def info f exec 'open', github_info(name) if ARGV.flag? '--github' - f=Formula.factory name puts "#{f.name} #{f.version}" puts f.homepage @@ -213,7 +210,7 @@ def info name puts end - history = github_info(name) + history = github_info(f.name) puts history if history rescue FormulaUnavailableError |
