Skip to content

Commit

Permalink
add cask names to search hash
Browse files Browse the repository at this point in the history
  • Loading branch information
rrotter committed Jun 29, 2024
1 parent 545f8a7 commit d2b177e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def self.search_descriptions(string_or_regex, args, search_type: :desc)
opoo "#{unofficial} additional cask(s) in third party repositories were not searched. " \
"To search all casks repeat this search with the flag `--eval-all`."
end
descriptions = Homebrew::API::Cask.all_casks.transform_values { |data| data["desc"] }
# descriptions = Homebrew::API::Cask.all_casks.transform_values { |data| data["desc"] }
descriptions = Homebrew::API::Cask.all_casks.transform_values { |c| [c["name"].join(", "), c["desc"]] }
Descriptions.search(string_or_regex, search_type, descriptions, eval_all, cache_store_hash: true).print

Check warning on line 58 in Library/Homebrew/search.rb

View check run for this annotation

Codecov / codecov/patch

Library/Homebrew/search.rb#L57-L58

Added lines #L57 - L58 were not covered by tests
end
end
Expand Down

0 comments on commit d2b177e

Please sign in to comment.