aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/search.rb
AgeCommit message (Collapse)Author
2017-10-18Use “squiggly” heredocs.Markus Reiter
2017-10-14search: pass explicit sort to handle APFSDominyk Tiller
2017-09-24Rubocop: manual rule fixes.Mike McQuaid
2017-08-23audit: don't output when searching taps.Mike McQuaid
This messaging was added for the `brew search` command and having it in audit is annoying: (https://github.com/Homebrew/brew/pull/3059#issuecomment-323638672) As a side note: this is why randomly including `cmd/*` is a bad idea.
2017-08-22upgrade more urls to httpsViktor Szakats
2017-08-18Merge pull request #3054 from BenMusch/github-refactorMarkus Reiter
Clean-up code in GitHub module to reduce duplication & coupling w/ Github API
2017-08-15search: explain why it takes the time it does.Mike McQuaid
Provide a bit of clarity that this isn't just searching a local database but doing an GitHub API and Git history query.
2017-08-14Implement PR feedbackBen Muschol
2017-08-13Remove duplicate url generation logic in Github moduleBen Muschol
2017-08-11Fix styleBen Muschol
2017-08-11Add a testBen Muschol
2017-08-11Replace search_tap with search_tapsBen Muschol
2017-08-07cmd/search: use new Fedora package searchBob W. Hogg
pkgdb has been put into read-only mode, so it won't be updated for new Fedora releases going forward. Use apps.fedoraproject.org/packages instead. Signed-off-by: Bob W. Hogg <rwhogg@linux.com>
2017-06-10Autocorrect Rubocop Style/PerlBackrefs.Mike McQuaid
2017-06-03Merge pull request #2716 from reitermarkus/re-revertMarkus Reiter
Re-revert "Fix operator spacing."
2017-06-02search: don’t exclude Caskroom results even if tapped.Mike McQuaid
As they are not shown in the normal `brew search` output.
2017-06-02Re-revert "Fix operator spacing."Markus Reiter
2017-06-01Revert "Fix operator spacing."ilovezfs
2017-05-31Fix operator spacing.Markus Reiter
2017-04-25Add `GitHub::search_code` method.Markus Reiter
2017-04-24search: use single HTTP call for tap searches.Mike McQuaid
Use GitHub's code search API to search using the filename based on the search query. This means we only need a single HTTP call and no more multithreading madness. This also means we're able to search everything in the Homebrew and Caskroom organisation by default without having to maintain a list of things to search (and not) in here.
2017-04-20Add `OFFICIAL_CASK_TAPS` in `official_taps.rb`.Markus Reiter
2017-04-20Lowercase `Caskroom` in `search`.Markus Reiter
2017-03-23search: silence searching git log.Mike McQuaid
2017-03-20missing_formula: subsume historic logic.Mike McQuaid
These methods belong together so combine them in a single class to provide a simpler API.
2017-03-20blacklist: move to missing_formula class instead.Mike McQuaid
This will allow extending this class so it can be used by more than just blacklisting.
2017-03-20search: tweak specific formula match formatting.Mike McQuaid
2017-02-25Update brew's man page formatting and grammarEricFromCanada
Also update command specifications to match descriptions.
2016-10-15Convert `puts_columns` to `puts Formatter.columns`.Markus Reiter
2016-10-15Don’t use `puts_columns` if `empty?` or single item.Markus Reiter
2016-10-02Use `module_function` for commands.Markus Reiter
2016-09-25Fix `search_tap` regex/string matching.Markus Reiter
2016-09-23Fix Style/GuardClause.Markus Reiter
2016-09-23Fix RuboCop CaseEquality.Markus Reiter
2016-09-11cmd/search: fix Rubocop warnings.Mike McQuaid
2016-08-28search: handle name@v.v formulae.Dominyk Tiller
Before this change: ``` ~> brew search openssl@1.1 openssl@1.1 âś” ==> Did you mean to perform a regular expression search? ==> Surround your query with /slashes/ to search by regex. ```
2016-08-12search: remove thread-unsafe Hash cache.Mike McQuaid
Doesn't appear to affect the speed of `brew search`. Fixes #415.
2016-08-08search: fix repositories with formulae and casks.Mike McQuaid
e.g. Caskroom/homebrew-cask. Thanks to UniqMartin for the fix. Fixes #655.
2016-08-05various: eliminate the usage of `any?` (#638)Xu Cheng
`any?` is not the opposite of `empty?`. Besides the case that `[false, nil].any?` will return false, `any?`(O(n)) has much worse performance than `empty?`(O(1)).
2016-05-26search: add alias -S back to zero-argument helpMartin Afanasjew
Amends 132ada2b0ebb3751c0f8f42ca83bb257b55a50fd until we properly figure out a way of documenting built-in aliases (or not doing that) across all commands that currently have aliases. See #270 for full discussion.
2016-05-26Clarify brew search usage. (#270)Joe Gallo
* Include --desc in brew search help text. * Update brew search --desc text in README. * Remove mention of alias in brew search help text to avoid any confusion.
2016-04-10Add all the top level commentsMax Nordlund
2016-03-19Improve error message for invalid regex to searchSam McTaggart
Fixes https://github.com/Homebrew/homebrew/issues/50131 This commit removes the error backtrace and improves the error message if a bad regexp is passed to `brew search`. Closes Homebrew/homebrew#50173. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-17Search also in Caskroom/versions TapTommy Sparber
Extending the current search functionallity to search in https://github.com/caskroom/homebrew-versions Closes Homebrew/homebrew#47954. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-12-07Use `(installed)` and emoji ticks consistently.Mike McQuaid
Across info, search and update. Closes Homebrew/homebrew#45131. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-15search: various improvementXu Cheng
* Move listing all formula names in the top to speed up shell script. * Simplify logic. * Only search PR and check bad regex for tty?, which will benefit to shell script. Closes Homebrew/homebrew#44985. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-15search: highlight installed formulaeXu Cheng
2015-10-10search: don't fail because broken formulaeXu Cheng
Fixes Homebrew/homebrew#44687. Closes Homebrew/homebrew#44770. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-13search: use full name to filter aliases resultXu Cheng
2015-09-13search: handle tap aliasesXu Cheng