Merge pull request #20552 from branchvincent/alpine

cmd/search: add `--alpine`
This commit is contained in:
Mike McQuaid 2025-08-23 19:44:30 +00:00 committed by GitHub
commit 22d67da642
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,6 +11,7 @@ module Homebrew
module Cmd module Cmd
class SearchCmd < AbstractCommand class SearchCmd < AbstractCommand
PACKAGE_MANAGERS = T.let({ PACKAGE_MANAGERS = T.let({
alpine: ->(query) { "https://pkgs.alpinelinux.org/packages?name=#{query}" },
repology: ->(query) { "https://repology.org/projects/?search=#{query}" }, repology: ->(query) { "https://repology.org/projects/?search=#{query}" },
macports: ->(query) { "https://ports.macports.org/search/?q=#{query}" }, macports: ->(query) { "https://ports.macports.org/search/?q=#{query}" },
fink: ->(query) { "https://pdb.finkproject.org/pdb/browse.php?summary=#{query}" }, fink: ->(query) { "https://pdb.finkproject.org/pdb/browse.php?summary=#{query}" },