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"
|
require "cli/parser"
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
|
extend DependenciesHelpers
|
||||||
|
|
||||||
module_function
|
module_function
|
||||||
|
|
||||||
def deps_args
|
def deps_args
|
||||||
|
@ -8,6 +8,8 @@ require "formula"
|
|||||||
require "cli/parser"
|
require "cli/parser"
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
|
extend DependenciesHelpers
|
||||||
|
|
||||||
module_function
|
module_function
|
||||||
|
|
||||||
def uses_args
|
def uses_args
|
||||||
|
@ -56,9 +56,7 @@ class Requirements < DelegateClass(Set)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
module Homebrew
|
module DependenciesHelpers
|
||||||
module_function
|
|
||||||
|
|
||||||
def argv_includes_ignores(argv)
|
def argv_includes_ignores(argv)
|
||||||
includes = []
|
includes = []
|
||||||
ignores = []
|
ignores = []
|
||||||
@ -81,7 +79,7 @@ module Homebrew
|
|||||||
ignores << "optional?"
|
ignores << "optional?"
|
||||||
end
|
end
|
||||||
|
|
||||||
ignores << "recommended?" if Homebrew.args.skip_recommended?
|
ignores << "recommended?" if args.skip_recommended?
|
||||||
|
|
||||||
[includes, ignores]
|
[includes, ignores]
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user