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
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
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
0ae416d0ee
Refactor Search#search_descriptions
...
- Move cask logic back into method from extend/os and check
whether to display it based on args since formula?
is passed by default on Linux now
- Use #search_descriptions in `brew desc` instead of
duplicating logic
- Remove need for extend/os/search
2022-12-17 10:03:41 -08:00
Mike McQuaid
28719f7fdc
cmd/desc: fix searching.
...
Ensure that the cache store is populated if we pass `--eval-all`.
2022-12-06 13:56:54 +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
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
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
Markus Reiter
da9289eff0
Add more type signatures.
2020-11-13 12:26:36 +01:00
Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
William Ma
fa7bd3bff6
args: Migrate usage of args loading methods to args.named
2020-08-23 09:02:20 -04:00
Markus Reiter
d4c2ffd705
Refactor CLI::Parser
.
2020-07-31 15:07:17 +02:00
EricFromCanada
d068d87b1d
desc: fix search options
2020-03-10 23:18:40 -04:00
Mike McQuaid
a7fe0ed847
cmd: use more and cleanup new args APIs.
2020-03-05 09:40:15 +00:00
EricFromCanada
f0270a585c
desc/audit: remove messages obviated by new arg parser
2019-12-13 15:23:38 -05:00
Gautham Goli
22e25dd593
argv: move formulae to cli/args
2019-12-11 16:36:23 +05:30
EricFromCanada
8a8359cdd4
manpages: sentence rewording for readability
...
Use active voice when applicable, better verbs & adjectives, preposition usage, proper tense, etc.
2019-08-20 09:05:45 -04:00
EricFromCanada
a3e0647797
manpages: whitespace fixes
2019-08-20 08:24:20 -04:00
Mike McQuaid
c4f72312ce
Fixup brew style
failures.
2019-04-30 09:19:18 +01:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files.
2019-04-20 13:27:36 +09:00
Mike McQuaid
e40b171127
Rename cli_parser to cli/parser.
2019-04-17 22:16:50 +09:00
Mike McQuaid
6cb7a00f2d
cmd: remove --help headers and tweak docs.
2019-01-30 21:39:28 +00:00
Mike McQuaid
867b155479
Add missing conflicts to command options.
2019-01-29 19:39:41 +00:00
Gautham Goli
134522137f
desc: Use CLI::Parser to parse args
2018-11-04 22:29:37 +05:30
Mike McQuaid
fe6b78a3f3
Use cache_store for descriptions
...
This makes use of both the existing interfaces and could use the
existing cache file but we'll create a new one and cleanup the old one
to avoid issues and use a more consistent name.
2018-10-13 08:22:52 -07:00
Markus Reiter
e9b9ea49a1
Update to RuboCop 0.59.1.
2018-09-17 03:45:59 +02:00
Markus Reiter
717032d86d
Use Searchable
module.
2018-06-07 14:02:31 +02:00
Markus Reiter
6fcc5d14de
Simplify strings for search.
2018-06-07 13:50:10 +02:00
EricFromCanada
1d2b4ed321
docs: add more missing option descriptions
...
and improve wording or formatting where necessary.
2018-02-01 16:06:17 -05:00
EricFromCanada
afc539f86e
Update brew's man page formatting and grammar
...
Also update command specifications to match descriptions.
2017-02-25 17:37:57 -05:00
Markus Reiter
0ab750bf24
Use module_function
for commands.
2016-10-02 00:24:47 +02:00
Mike McQuaid
5e0c222029
cmd/desc: fix Rubocop warnings.
2016-09-11 17:58:59 +01:00
Max Nordlund
fa1fd70a37
Add all the top level comments
2016-04-10 22:59:25 +02:00
Xu Cheng
c75207c1e0
desc: print descriptions directly by formulae instead of cache
...
We allow passing formulae by URL, file path, etc whose descriptions won't be cached
Closes Homebrew/homebrew#43726 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-10 13:37:58 +08:00
Xu Cheng
80514ee5d7
desc: better way to handle options
...
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-10 13:37:57 +08:00
Dan Martinez
8374374168
Improve description searching and add a cache.
...
Closes Homebrew/homebrew#42281 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-08 15:23:37 +01:00