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 b618ba6 commit de9d4a6
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
end
end
Expand Down

0 comments on commit de9d4a6

Please sign in to comment.