Mike McQuaid
7da934f7e2
Deprecate/disable/delete code.
...
The next release after this is merged will be 4.1.0.
Co-authored-by: Markus Reiter <me@reitermark.us>
2023-07-06 16:56:20 +01:00
Douglas Eichelberger
24cf6076e8
brew style --fix
2023-04-24 20:42:39 -07:00
Bo Anderson
3697825784
search: remove remote searching
2023-04-12 13:16:19 +01:00
Douglas Eichelberger
d56e2884aa
Enable typing in cmd/
2023-03-06 15:01:08 -08:00
EricFromCanada
dfc9906184
internal messaging fixes
2023-02-10 23:17:16 -05:00
Mike McQuaid
6b4363092d
Revert "Merge pull request #14548 from Homebrew/revert-14382-deprecate-disable-remove"
...
This reverts commit 932d2cf3b77c9439a57b6a43577fc8d3b6399a62, reversing
changes made to f4e60482791d2ff628efadfdbf0d14d9237d2d29.
2023-02-07 19:25:51 +01:00
Mike McQuaid
6882ac17e7
Revert "Add deprecations and disables"
2023-02-07 15:13:19 +01:00
Mike McQuaid
59c03cb2a6
Add deprecations and disables
...
Do the usual dance:
- commented `odeprecated` to `odeprecated`
- `odeprecated` to `odisabled`
- `odisabled` removed
2023-02-03 10:48:43 +00:00
謝致邦 (XIE Zhibang)
3d44f0568e
search.rb: Update Fedora URL
2023-01-07 09:13:30 +00:00
apainintheneck
47b3f6fe6e
Stop including/extending search.rb
...
- Instead use class methods.
- This is better than use it as a mixin
when only a small number of methods are
used in each class or module.
- It also allows us to conditionally
require it in `brew install`.
- Removed unused search require in descriptions.rb.
2022-12-17 11:08:13 -08:00
apainintheneck
cb64bc4df3
Move pkg type logic into search_name
...
Now the search_name method takes the command line
args and only returns package types that line up
with those args.
That means it will only return casks if casks are valid
and same with formulae.
2022-12-13 22:50:00 -08:00
apainintheneck
daa87fa10f
Add specific examples to install cmd
...
- provide specific install instructions
when a cask/formula doesn't exist
and we search for similar ones
- print and exit early if a named formula that
was removed recently has the same name
- exit early if the tap is specified because
we don't get good search results
2022-12-12 21:04:59 -08:00
apainintheneck
a481729ade
Show casks in install not found output
...
- Move `search_names` and `print_missing_formula_help` out of `cmd/search.rb` to `search.rb`
- Change to using those functions in `cmd/install.rb` when a formula or cask doesn't exist
2022-12-10 13:02:38 -08:00
Mike McQuaid
8145d516e2
cmd/search: better handle non-TTY output.
...
When `stdout` is not a TTY then using `ohai` is a bit unpleasant as it
prevents using pipes to do cool things with the output.
2022-11-01 13:51:13 +00:00
Mike McQuaid
e2759fbdff
Deprecate reading all formulae through commands
...
We added the `--all` flag (now renamed to `--eval-all`) for various
commands for this behaviour so let's start deprecating this.
Also, introduce a `HOMEBREW_EVAL_ALL` environment variable to use the
existing, less secure, behaviour by default and avoid passing
`--eval-all` everywhere.
2022-09-05 13:57:22 +01:00
Anatoli Babenia
fded404e13
Suggestion with better wording
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2022-08-09 11:59:13 +03:00
Anatoli Babenia
be2ae9a6be
brew search --vebose
to tell about brew desc
2022-08-09 09:50:44 +03:00
Mike McQuaid
2d5eab2e1c
brew style --fix
2022-06-30 08:56:21 +01:00
EricFromCanada
2fdc70c3bf
desc, search: also search cask descriptions
2022-03-30 11:23:55 -04:00
fn ⌃ ⌥
4698dfe9ae
search: print newline if neither --formula nor --cask specified
2021-11-08 08:55:18 -08:00
fn ⌃ ⌥
9438dc94e3
search: split missing formula help into its own method
2021-11-08 08:55:18 -08:00
fn ⌃ ⌥
896aff0cf2
search: split up command into multiple methods
2021-11-08 08:55:18 -08:00
Carlo Cabrera
93340e08d5
cmd/search: add Arch Linux
...
Arch update their packages very quickly, so they're quite useful as a
reference for building formulae.
2021-10-19 04:40:00 +08:00
hyuraku
3ccb1f6328
search by desc with formula-cask option
2021-07-25 20:10:35 +09:00
Carlo Cabrera
219fffb700
cmd/search: tweak help text
...
See https://github.com/Homebrew/brew/pull/11736#discussion_r672233442 .
2021-07-20 09:32:37 +08:00
Carlo Cabrera
822170a766
cmd/search: add repology
...
I often find myself checking Repology to quickly reference how other
package managers handle certain things, so it seems useful to be able to
do so with `brew search`.
While we're here, let's fix the query URL for MacPorts.
2021-07-18 09:22:34 +08:00
Mike McQuaid
30a65342e8
Deprecate, disable, delete code for Homebrew 3.2.0
...
Do the usual deprecation, disable, delete dance for Homebrew 3.2.0.
2021-06-17 11:34:32 +01:00
Rylan Polster
0a30cae9d1
search: properly deprecate brew search --cask
2021-04-19 08:25:19 -04:00
Mike McQuaid
d73351251c
Deprecate, disable, delete code for next major/minor version.
...
Do the usual dance for bumping our major/minor version.
2021-04-09 09:30:36 +01:00
nandahkrishna
8e5451df2f
style: use parentheses for assignment in conditions
2021-02-12 18:33:37 +05:30
Mike McQuaid
d6957a3acb
Homebrew 3.0.0 deprecations/disables
2021-01-29 19:50:24 +00:00
EricFromCanada
2ed324ebc0
use backticks around suggested input, flags, and binaries
2021-01-26 16:19:47 -05:00
EricFromCanada
2ae4f11963
reorder command flags
2021-01-26 15:36:44 -05:00
EricFromCanada
2e982cd2a2
use odie when commands encounter errors
2021-01-26 15:36:43 -05:00
EricFromCanada
571179ff0e
pass second argument to ohai when applicable
2021-01-26 15:36:43 -05:00
Rylan Polster
d1f3e39b7b
Update commands to generate usage banner
2021-01-18 21:20:11 -05:00
Dawid Dziurla
332372469f
cmd: indicate multiple named args in usage banner
2021-01-15 13:04:00 +01:00
Rylan Polster
da811373d3
Add named_args DSL for commands
2021-01-13 17:09:42 -05:00
hyuraku
0b574eff90
search: add two options
2020-12-23 23:06:02 +09:00
Mike McQuaid
74fb058c7e
More deprecations
...
More deprecations, disabling and removal for Homebrew 2.7.0.
2020-12-18 14:17:37 +00:00
Mike McQuaid
9216d8abe6
rubocop-rails: make fixes.
2020-12-02 10:43:04 +00:00
Mike McQuaid
c4cc8da39a
cmd/search.rb: add commented-out deprecation.
2020-11-20 12:43:51 +00:00
EricFromCanada
f784b7107f
manpage: fixes for grammar
2020-11-16 07:56:50 -05:00
Markus Reiter
da9289eff0
Add more type signatures.
2020-11-13 12:26:36 +01:00
William Ma
e9e63db825
search: Raise exception when no formulae/casks are found; Add --pull-request switch
2020-10-14 14:40:24 -04:00
William Ma
9e9e2e63e8
search: Print error message to stderr when not using a tty
2020-10-14 13:32:09 -04:00
Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
Dustin Rodrigues
b3c991a674
search: use https for fink query url
2020-09-04 00:06:43 -04:00
Mike McQuaid
3875f16782
Fix --formula and --cask flags.
...
These were all made `--formulae` and `--casks` for consistency but that
doesn't behave as expected because they have special behaviours in
`args`. Instead, use the singular form everywhere.
2020-08-07 09:53:30 +01:00
Markus Reiter
d4c2ffd705
Refactor CLI::Parser
.
2020-07-31 15:07:17 +02:00