Douglas Eichelberger
1943132cf6
Move i18n out of global
2023-03-11 17:27:53 -08:00
Douglas Eichelberger
d56e2884aa
Enable typing in cmd/
2023-03-06 15:01:08 -08:00
Douglas Eichelberger
719f1d6c6e
Refactor some use of OpenStruct
2023-02-28 13:05:43 -08: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
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
79891a7103
Update uses of Formula.all
/Cask::Cask.all
...
Add some `--all` flags we'll eventually migrate to to ensure that we'll
eventually require their usage to read all formulae. Where we need to
do stuff later, add some comments.
2022-03-08 19:24:56 +00:00
Mike McQuaid
3a709d36b2
Start process to remove Enumerable
from Formula
and Cask::Cask
.
...
This is the first step to address
https://github.com/Homebrew/brew/issues/11292 .
2022-01-03 14:59:10 +00:00
Bo Anderson
ae2d0fb0f8
Fix Cask handling in brew deps
and brew uses
.
...
Fixes #10906 .
2021-03-22 22:26:45 +00:00
Rylan Polster
67e03a0675
Improve command descriptions
...
Co-Authored-By: Jonathan Chang <me@jonathanchang.org>
Co-Authored-By: Eric Knibbe <3324775+EricFromCanada@users.noreply.github.com>
2021-01-25 13:46:51 -05:00
Rylan Polster
7f23b55c5e
Cleanup command descriptions
...
Don't have a period within first full sentence of the description
2021-01-25 13:46:35 -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
Rylan Polster
cb4e473384
uses: further cleanup formula/cask argument handling
2020-12-07 11:12:56 -05:00
Rylan Polster
eab1c2ca53
uses: cleanup formula/cask argument handling
2020-12-06 22:21:02 -05:00
Rylan Polster
e3427fa64f
uses: add --formula and --casks flags
2020-12-06 11:45:30 -05:00
EricFromCanada
72bc057014
manpage: fixes for formatting
2020-11-16 08:02:50 -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
Markus Reiter
90f145114c
Pass Cask::Config
to Caskroom.casks
.
2020-10-01 01:03:13 +02:00
Mike McQuaid
2e5272d04c
Deprecate/disable code for Homebrew 2.5.0.
...
Do the usual "disable deprecations" and "uncomment pending deprecations"
dance and delete/deprecate/disable relevant/related code.
2020-09-03 10:34:22 +01:00
William Ma
fa7bd3bff6
args: Migrate usage of args loading methods to args.named
2020-08-23 09:02:20 -04:00
Seeker
281a598685
cmd/uses: extract function intersection_of_dependents
2020-08-03 10:19:50 -07:00
William Ma
72c672b814
Merge branch 'master' into integrate-uses
2020-08-01 12:12:09 -04:00
Markus Reiter
096377abf2
Pass args
correctly in brew deps
and brew uses
.
2020-07-31 19:10:45 +02:00
William Ma
e05538a7d9
Create DependenciesHelpers file, add tests
2020-07-31 11:35:45 -04:00
Markus Reiter
d4c2ffd705
Refactor CLI::Parser
.
2020-07-31 15:07:17 +02:00
William Ma
7be2b943cb
uses: Print cask uses
2020-07-30 12:59:01 -04:00
Markus Reiter
cfbe1fb3c7
Add helper functions for deps
and uses
explicitly.
2020-07-25 02:37:10 +02:00
Seeker
de3edd1c24
cmd/uses: mention "dependents" in help text
2020-07-20 11:26:56 -07:00
Mike McQuaid
a7fe0ed847
cmd: use more and cleanup new args APIs.
2020-03-05 09:40:15 +00:00
Gautham Goli
685a6b4da6
ARGV: Replace usages of ARGV.named with Homebrew.args.named
2019-12-18 20:38:21 +05:30
Gautham Goli
22e25dd593
argv: move formulae to cli/args
2019-12-11 16:36:23 +05:30
Mike McQuaid
e8b74601cb
uses: make naming and behaviour consistent with deps and docs.
2019-11-27 12:49:46 +00:00
Mike McQuaid
f24356f015
uses: refactor to improve performance
2019-11-06 10:20:57 +00:00
Issy Long
341ea60807
Auto-fix Style/RedundantBegin offenses
...
- This also required auto-fixes for Layout/EmptyLinesAroundBlockBody and
Layout/InconsistentIndentation once the auto-fixer had got rid of the
"redundant begin"s.
2019-10-13 16:04:27 +01:00
EricFromCanada
6f2b07163e
uses: move comment that was being read by yard
2019-09-04 00:08:31 -04:00
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
6520785307
manpages: grammar fixes
2019-08-20 08:26:26 -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
ec1c95f973
uses: Use CLI::Parser to parse args
2018-11-14 13:11:54 +05:30
Markus Reiter
e9b9ea49a1
Update to RuboCop 0.59.1.
2018-09-17 03:45:59 +02:00
Mike McQuaid
cffa5a9864
Disable/delete/add more deprecations
...
Move various `odeprecated` to `odisabled` and delete uses of
`odisabled`.
2018-04-08 14:57:17 -07:00
Mike McQuaid
ff7294ee1f
uses: use Formula#runtime_dependencies.
2018-03-27 14:52:47 +01:00