aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/search.rb
AgeCommit message (Collapse)Author
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
2015-09-10desc: better way to handle optionsXu Cheng
We allow to use options like --verbose and --debug for all commands. And we should support switch format options, e.g. `brew desc -vs foo`
2015-09-08Improve description searching and add a cache.Dan Martinez
Closes Homebrew/homebrew#42281. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-31cmd/search: fix filtering of aliases in resultsAlex Dunn
By directly modifying the results array with `results[i] = "#{name} (installed)"`, it appeared on successive iterations that the canonical name was no longer in the array, so aliases were not removed. See https://github.com/Homebrew/homebrew/commit/9efe5b554ce9cf6626d9794173725f5e063e5806#commitcomment-12969631 Closes Homebrew/homebrew#43433.
2015-08-30cmd/search: mark installed formulaeAlex Dunn
`brew search emacs`, with homebrew/emacs tapped: ``` real 0m2.586s user 0m1.138s sys 0m0.121s ``` Previously: ``` real 0m2.831s user 0m1.385s sys 0m0.087s ``` `brew search s`: ``` real 0m2.260s user 0m1.201s sys 0m0.114s ``` Previously: ``` real 0m5.953s user 0m4.827s sys 0m0.226s ``` Closes Homebrew/homebrew#35696. Closes Homebrew/homebrew#42662.
2015-08-03More core files style updatesXu Cheng
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-08cmd/search --desc: bold formula namesAlex Dunn
Closes Homebrew/homebrew#40717. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-18search: cache remote tap formulaeXu Cheng
Closes Homebrew/homebrew#40775. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-17search --desc: cache the query regexpBaptiste Fontaine
Closes Homebrew/homebrew#40795. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-06-01add official_tapsXu Cheng
2015-05-29search: use Formula#full_nameXu Cheng
2015-05-27add Formula.core_names Formula.tap_names and Formula.full_namesXu Cheng
2015-05-25`brew search` can take a `--desc` argument to search descriptionsNikolaus Wittenstein
2015-04-24search: add homebrew/tex to search paramsDominyk Tiller
Closes Homebrew/homebrew#38855. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-21cmd/search: notification on attempted regex searchesAlex Dunn
Closes Homebrew/homebrew#38760. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-25search: fix --fedora URL.Baptiste Fontaine
Closes Homebrew/homebrew#37155. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-04Use more https in urls and updated some lost linksViktor Szakats
Closes Homebrew/homebrew#35531. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-12-28search: add homebrew-x11 to default tapsMisty De Meo
2014-11-30Allow searching/installing Homebrew Casks.Mike McQuaid
People want to install things like GIMP using Homebrew so let's make it easier for them to find a decent installation method. Closes Homebrew/homebrew#34496. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-06-19Only "extend self" once on the Homebrew moduleJack Nagel
2014-04-27Respect tap directory layout when searchingJack Nagel
This matches the logic in find_formula.
2014-04-27Use canonical_name to canonicalize aliasesJack Nagel
2014-04-27Search results should always be sortedJack Nagel
2014-04-27Use Formulary.factory to find formula in tapsJack Nagel
2014-04-25Yield absolute paths from find_formulaJack Nagel
2014-04-24Make the on-disk representation of taps unambiguousTsukasa OMOTO
This commit supports "-" and "_" in names of user and repository. Closes Homebrew/homebrew#28203. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-04-18search: move nginx to Homebrew organisation.Mike McQuaid
2014-04-10Migrate homebrew-php to Homebrew organization.Mike McQuaid