use default_kegs
This commit is contained in:
parent
a9b275d757
commit
2347bfdb92
@ -77,7 +77,7 @@ module Homebrew
|
||||
def to_formulae_to_casks(only: parent&.only_formula_or_cask, method: nil)
|
||||
@to_formulae_to_casks ||= {}
|
||||
@to_formulae_to_casks[[method, only]] = to_formulae_and_casks(only: only, method: method)
|
||||
.partition { |o| o.is_a?(Formula) }
|
||||
.partition { |o| o.is_a?(Formula) || o.is_a?(Keg) }
|
||||
.map(&:freeze).freeze
|
||||
end
|
||||
|
||||
|
||||
@ -132,8 +132,9 @@ module Homebrew
|
||||
system_command! "find", args: args.named.to_default_kegs.map(&:to_s) + %w[-not -type d -print],
|
||||
print_stdout: true
|
||||
else
|
||||
formula_names, cask_names = args.named.to_resolved_formulae_to_casks
|
||||
formula_names.map(&:name).each { |keg| PrettyListing.new keg } if formula_names.present?
|
||||
formula_names, cask_names = args.named.to_formulae_to_casks(method: :default_kegs)
|
||||
|
||||
formula_names.each { |keg| PrettyListing.new keg } if formula_names.present?
|
||||
list_casks(cask_names, args) if cask_names.present?
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user