Add helper functions for deps
and uses
explicitly.
This commit is contained in:
parent
bf13db3367
commit
cfbe1fb3c7
@ -5,6 +5,8 @@ require "ostruct"
|
||||
require "cli/parser"
|
||||
|
||||
module Homebrew
|
||||
extend DependenciesHelpers
|
||||
|
||||
module_function
|
||||
|
||||
def deps_args
|
||||
|
@ -8,6 +8,8 @@ require "formula"
|
||||
require "cli/parser"
|
||||
|
||||
module Homebrew
|
||||
extend DependenciesHelpers
|
||||
|
||||
module_function
|
||||
|
||||
def uses_args
|
||||
|
@ -56,9 +56,7 @@ class Requirements < DelegateClass(Set)
|
||||
end
|
||||
end
|
||||
|
||||
module Homebrew
|
||||
module_function
|
||||
|
||||
module DependenciesHelpers
|
||||
def argv_includes_ignores(argv)
|
||||
includes = []
|
||||
ignores = []
|
||||
@ -81,7 +79,7 @@ module Homebrew
|
||||
ignores << "optional?"
|
||||
end
|
||||
|
||||
ignores << "recommended?" if Homebrew.args.skip_recommended?
|
||||
ignores << "recommended?" if args.skip_recommended?
|
||||
|
||||
[includes, ignores]
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user