Douglas Eichelberger
1943132cf6
Move i18n out of global
2023-03-11 17:27:53 -08:00
Issy Long
e9d994622e
rubocop: Drop "f" from Naming/MethodParameterName
allowlist
...
- This either stands for "file" but more often than not "formula".
2023-03-11 00:17:27 +00:00
Issy Long
a3211f4d7f
rubocop: Drop "d" from Naming/MethodParameterName
allowlist
2023-03-08 14:42:57 +00:00
Douglas Eichelberger
d56e2884aa
Enable typing in cmd/
2023-03-06 15:01:08 -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
EricFromCanada
197f915323
cmd/deps: drop --installed
requirement for --formula
/--cask
...
Fixes #13592 .
2022-08-31 14:20:11 -04:00
Mike McQuaid
fd432aa1db
cmd/deps: improve switch names.
...
The previous `-n` and `--1` made both the code and the help harder to
read and follow.
Co-authored-by: Eric Knibbe <enk3@outlook.com>
Co-Authored-By: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2022-08-31 17:21:44 +01:00
Mike McQuaid
a5f7fc814e
cmd/deps: return failing exit code on circular dependencies.
...
This makes more sense but will also be useful in `brew test-bot`.
2022-08-30 12:21:02 +00:00
Mike McQuaid
2d5eab2e1c
brew style --fix
2022-06-30 08:56:21 +01:00
hyuraku
0f546b0b3d
cmd/deps: repair dot_code
2022-03-19 16:21:01 +09: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
Mike McQuaid
510bc25db6
brew style -fix
2021-12-29 13:07:39 +00:00
fn ⌃ ⌥
87e9a495d1
deps: add --graph
and --dot
switches
2021-11-16 08:50:39 -08:00
fn ⌃ ⌥
a188215d69
deps: minor refactoring
2021-11-16 08:45:59 -08:00
Bo Anderson
ae2d0fb0f8
Fix Cask handling in brew deps
and brew uses
.
...
Fixes #10906 .
2021-03-22 22:26:45 +00:00
EricFromCanada
2ae4f11963
reorder command flags
2021-01-26 15:36:44 -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
4238ee8300
cmd/deps: refactor
2020-12-29 21:06:32 +09:00
hyuraku
e2ce4ab1b6
add flags to deps --installed
2020-12-04 10:11:17 +09:00
Mike McQuaid
c23db73e36
Revert "add two flag to deps --installed"
2020-12-03 19:39:32 +00:00
hyuraku
33fccb46ca
add two flag to deps --installed
2020-12-03 16:54:17 +00: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
e09147fe75
brew style --fix
2020-09-01 14:26:45 +01:00
William Ma
fa7bd3bff6
args: Migrate usage of args loading methods to args.named
2020-08-23 09:02:20 -04:00
Mike McQuaid
3a91c37e66
Fix RuboCop checks.
2020-08-19 17:12:32 +01:00
Rylan Polster
4cfd80451a
deps: fix args for --installed with no formula
2020-08-03 10:42:46 -04:00
Mike McQuaid
a3efb35b0e
Merge pull request #8145 from MLH-Fellowship/integrate-uses
...
uses: Print cask uses
2020-08-03 09:07:22 +01:00
Rylan Polster
c9c258cbfb
deps: fix args
2020-08-01 12:52:37 -04: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
Mike McQuaid
17fb1b6dd8
cmd/deps: add missing require.
...
Fixes https://github.com/Homebrew/brew/pull/8126#issuecomment-666345260
2020-07-30 14:20:58 +01:00
William Ma
4216da7629
deps: Move CaskDependencies to its own file
2020-07-29 09:38:07 -04:00
William Ma
cc63cece76
deps: print cask dependencies
...
* Allow references to commands when using `brew deps`, e.g. `brew deps
cellery`
* Fix crash when using `brew deps <formula> --installed
--include-requirements`
* Do not include runtime dependencies as direct dependencies when using
`--tree`
2020-07-28 20:24:19 -04:00
Markus Reiter
cfbe1fb3c7
Add helper functions for deps
and uses
explicitly.
2020-07-25 02:37:10 +02:00
Mike McQuaid
a7fe0ed847
cmd: use more and cleanup new args APIs.
2020-03-05 09:40:15 +00:00
Dawid Dziurla
967b9b8112
deps: give consistent results
...
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
2020-02-12 22:38:20 +01:00
EricFromCanada
c31335c46d
deps: don't skip those that are both :build and :test
...
plus a code readability improvement
2019-12-27 17:35:18 -05:00
Gautham Goli
22e25dd593
argv: move formulae to cli/args
2019-12-11 16:36:23 +05:30
Mike McQuaid
5cca9b75a8
deps: use runtime_dependencies
more readily.
...
If all the passed packages are currently installed then use
`runtime_dependencies` to get dependency data more quickly and
accurately.
As discussed in https://github.com/Homebrew/brew/issues/6769 .
2019-11-27 12:36:21 +00:00
Mike McQuaid
1224f56511
deps: refactor weird OpenStruct usage.
2019-11-06 11:10:22 +00:00