Merge pull request #16766 from reitermarkus/tap-installed

Only show installed taps in `brew tap` output.
This commit is contained in:
Mike McQuaid 2024-02-29 10:35:19 +00:00 committed by GitHub
commit 8a846fb1c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

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

View File

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