Only show installed taps in brew tap output.

This commit is contained in:
Markus Reiter 2024-02-28 20:18:55 +01:00
parent 262912e6a6
commit e08e873921
No known key found for this signature in database
GPG Key ID: 245293B51702655B
2 changed files with 3 additions and 1 deletions

View File

@ -60,7 +60,7 @@ module Homebrew
tap.fix_remote_configuration tap.fix_remote_configuration
end end
elsif args.no_named? elsif args.no_named?
puts Tap.names puts Tap.select(&:installed?)
else else
tap = Tap.fetch(args.named.first) tap = Tap.fetch(args.named.first)
begin begin

View File

@ -868,6 +868,8 @@ class Tap
# An array of all installed {Tap} names. # An array of all installed {Tap} names.
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.names def self.names
# odeprecated "`#{self}.names`"
map(&:name).sort map(&:name).sort
end end