aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMike McQuaid2014-11-28 15:02:42 +0000
committerMike McQuaid2014-11-30 17:59:02 +0000
commit6651fb886fcd7b1003aac7626005fba259988d9c (patch)
tree97e6ad50b0b8fe734866f6fab36da901d88fc8db /Library/Homebrew/extend
parent05fa09918b789251b36667986dde6f9dbf36c6af (diff)
downloadhomebrew-6651fb886fcd7b1003aac7626005fba259988d9c.tar.bz2
Allow searching/installing Homebrew Casks.
People want to install things like GIMP using Homebrew so let's make it easier for them to find a decent installation method. Closes #34496. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ARGV.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index 669cb5d02..0e2bfac51 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -13,7 +13,11 @@ module HomebrewArgvExtension
def formulae
require "formula"
- @formulae ||= downcased_unique_named.map { |name| Formulary.factory(name, spec) }
+ @formulae ||= (downcased_unique_named - casks).map { |name| Formulary.factory(name, spec) }
+ end
+
+ def casks
+ @casks ||= downcased_unique_named.grep HOMEBREW_CASK_TAP_FORMULA_REGEX
end
def kegs