Eric Knibbe
1c4cb6936e
command options: various --eval-all
fixes
2025-09-05 08:53:44 +01:00
Eric Knibbe
6255263b51
output: express environment variables consistently
2025-08-04 09:50:06 -04:00
Eric Knibbe
f5c5d26173
cmd/dev-cmd: fetch HOMEBREW_EVAL_ALL for --eval-all
2025-07-03 12:59:12 -04:00
Douglas Eichelberger
a81239ec2d
Enable strict typing in Formula
2025-02-24 10:23:42 -08:00
Douglas Eichelberger
ff7f70d8b6
Fix select_includes sig
2025-02-16 13:26:10 -08:00
Douglas Eichelberger
0037b1f626
Enable strict typing in DependenciesHelpers
2025-02-16 12:24:22 -08:00
Eric Knibbe
99de228fc2
docs: various manpage grammar fixes
2025-02-05 13:38:39 +01:00
Mike McQuaid
bbf5a9f479
env_config: use environment variables consistently
...
- use e.g. `$HOMEBREW_*` for cases where only the environment variable
is the entire backtick-quoted string
- use e.g. `${HOMEBREW_*}` for cases where the environment variable is
part of a backtick-quoted string to make clear what parts are variable
and what parts are not
- use `export HOMEBREW_*=...` for cases where we're talking about
setting the environment variable (because it likely needs to be
exported to work how they want)
Inspired by https://github.com/Homebrew/homebrew-bundle/pull/1579 making
similar changes for Homebrew/homebrew-bundle.
2025-01-27 14:21:27 +00:00
Mike McQuaid
c60efd943b
cmd/uses: improve flag description.
2024-12-30 12:43:20 +00:00
Thierry Moisan
2af190363f
fixup! deps command: add --include-implicit flag
2024-12-27 13:11:04 -05:00
Thierry Moisan
d5e94f2082
deps command: add --include-implicit flag
2024-12-24 15:28:47 -05:00
Douglas Eichelberger
cb1c49e06b
Fix sigs
2024-11-23 10:25:45 -08:00
Douglas Eichelberger
89e640c567
Remove OpenStruct from Uses cmd
2024-11-22 21:04:51 -08:00
Issy Long
b0154f36a5
cmd/uses: Bump to Sorbet typed: strict
2024-08-10 23:55:14 +01:00
Douglas Eichelberger
fdc95d02c8
Port Homebrew::Cmd::Uses
2024-04-01 12:01:37 -07:00
Mike McQuaid
ea2892f8ee
brew.rb: handle missing args.
2024-03-07 16:20:20 +00:00
apainintheneck
b79778229c
Resolve Cask::Cask.all todo
...
Now it takes the :eval_all parameter that means we can remove
ARGV handling inside Cask::Cask.all.
2023-12-21 21:55:16 -08:00
Eric Knibbe
c493b5e680
cmd+dev-cmd: fixes for output formatting
2023-09-11 02:29:57 -04:00
hyuraku
adc2a2fea1
remove ARGV from Formula#all
2023-09-02 19:35:22 +09:00
apainintheneck
b2b8f0ea86
cmd/uses & cmd/deps: update help/man pages
...
- add clarification about precedence of command options
- reword some options for readability
- clarify the defaults in `brew deps`
2023-08-28 22:14:26 -07:00
apainintheneck
72152c09c7
cmd/uses: handle --missing
...
Ignore all dependencies that are already installed before
checking if they use the dependency in question. Remove
the :satisfied? criteria before checking used dependents.
2023-08-27 13:50:53 -07:00
apainintheneck
e314a43754
dependency_helpers: include required & use public_send
...
- Use .required? instead of .tags.empty?
- use .public_send
- modify .reject_ignores to be .select_includes
- checks ignores first now
- Don't use runtime deps with --missing in `brew deps` command
2023-08-25 00:25:14 -07:00
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
Robin Ury
dddec94fd7
Change: --skip-installed to --missing
2023-05-17 14:57:26 -05:00
Robin Ury
9b884942d7
Change: skip-installed description for clarity
2023-05-17 13:59:38 -05:00
Robin Ury
db84725c7b
Fix: strict args exception for uses
2023-05-17 13:53:19 -05:00
Douglas Eichelberger
24cf6076e8
brew style --fix
2023-04-24 20:42:39 -07:00
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