Skip to content

Commit

Permalink
Only show installed taps in brew tap output.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Feb 28, 2024
1 parent 262912e commit e08e873
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/cmd/tap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def tap
tap.fix_remote_configuration
end
elsif args.no_named?
puts Tap.names
puts Tap.select(&:installed?)
else
tap = Tap.fetch(args.named.first)
begin
Expand Down
2 changes: 2 additions & 0 deletions Library/Homebrew/tap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,8 @@ def self.each(&block)
# An array of all installed {Tap} names.
sig { returns(T::Array[String]) }
def self.names
# odeprecated "`#{self}.names`"

map(&:name).sort
end

Expand Down

0 comments on commit e08e873

Please sign in to comment.