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 30, 2024
1 parent c32337e commit 277265b
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 277265b

Please sign in to comment.