Bo Anderson
5692c8ecbf
Fix style violations under newer RuboCop
2023-12-14 05:47:12 +00:00
apainintheneck
5760ae4fb2
cmd/readall: Cleanup todos
...
- keep running the command against all os/arch combinations
as the default
- remove todos and deprecations related to changing the behavior
- create constants for os/arch combinations
2023-09-19 21:33:13 -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
Bo Anderson
68289f1165
Add without_api specifier for CLI named args
2023-06-22 01:57:28 +01:00
Markus Reiter
486c3765ce
Add --os=all
and --arch=all
options.
2023-05-17 15:26:46 +02:00
Douglas Eichelberger
24cf6076e8
brew style --fix
2023-04-24 20:42:39 -07:00
apainintheneck
35500130c4
Update parser tests
...
- Remove named_args linux specs now that that
logic has been moved to the parser
2022-12-04 23:02:44 -08:00
apainintheneck
b7e28ef48f
Make :formula? the default on Linux
...
This makes :formula? the default whenever
defined throughout the codebase on Linux.
It also makes :cask? illegal for all Linux
users.
2022-12-04 19:43:12 -08:00
Bo Anderson
eac32f0b20
Additional fixes for Ruby 3 compatibility
2022-10-18 01:54:59 +01:00
apainintheneck
6301de9dcc
Move Args#only_formula_or_cask to extend/os/linux
2022-10-03 18:13:33 -07:00
apainintheneck
5d27b70757
Set --formula by default on linux
2022-10-01 17:28:07 -07:00
Bo Anderson
cee86846ce
Fix Sorbet violations.
2021-08-06 14:03:00 +01:00
Bo Anderson
8e98ce69f3
Stricter handling of CLI args
2021-03-18 16:41:57 +00:00
Mike McQuaid
dc52ff620b
Merge pull request #10031 from hyuraku/only_path_formula_or_cask
...
add function to define path
2020-12-28 13:22:22 +00:00
Rylan Polster
224c7f44e2
cli/args: --HEAD implies building from source
2020-12-28 08:48:38 +00:00
Mike McQuaid
74fb058c7e
More deprecations
...
More deprecations, disabling and removal for Homebrew 2.7.0.
2020-12-18 14:17:37 +00:00
hyuraku
7be216fcbe
change function name
2020-12-17 21:07:43 +09:00
hyuraku
d7f9bb6247
add function to define path
2020-12-17 21:07:43 +09:00
Markus Reiter
47b8f96efb
Require formula
for named arguments.
2020-11-30 04:18:23 +01:00
Markus Reiter
7348185347
Reorder global
.
2020-11-30 00:00:02 +01:00
Mike McQuaid
d496f5c121
Deprecations for Homebrew 2.6.0
...
Do the usual deprecate/disable dance for the Homebrew 2.6.0 release.
Not to be merged until the next release will definitely be 2.6.0.
2020-11-24 16:44:02 +00:00
Markus Reiter
7a83f34dd1
Support casks in brew fetch
.
2020-11-19 19:46:59 +01:00
Markus Reiter
3ee66d8c0d
Add type annotations related to upgrade.
2020-11-16 19:45:15 +01: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
5f005f67cf
Refactor global Cask::Config
.
2020-10-01 00:57:10 +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
b4ee7a691c
args: Comment out deprecations
2020-08-23 09:02:25 -04: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
William Ma
13bc69385c
args: Move named args parsing to separate class
2020-08-14 13:49:03 -04:00
Markus Reiter
490e503b1b
Replace Homebrew.args
with Context
.
2020-08-06 16:13:14 +02:00
William Ma
cf961caa27
caskroom: Add --caskroom command
2020-08-03 12:35:03 -04:00
Markus Reiter
be2d19fe07
Refactor handling of formula options in CLI::Parser
.
2020-07-31 17:46:54 +02:00
Markus Reiter
4381c32524
Add test for parsing with ignore_invalid_options
.
2020-07-31 15:07:17 +02:00
Markus Reiter
d4c2ffd705
Refactor CLI::Parser
.
2020-07-31 15:07:17 +02:00
Markus Reiter
8d97029b03
Merge pull request #8084 from reitermarkus/cli-parser
...
Refactor usage of global `Homebrew.args`.
2020-07-30 11:44:12 +02:00
Markus Reiter
05365b5542
Pass args
more explicitly in FormulaInstaller
.
2020-07-30 03:21:12 +02:00
Markus Reiter
c470a6ff43
Pass args
directly to prevent_build_flags
.
2020-07-30 03:21:12 +02:00
Markus Reiter
db467497ca
Fix indentation.
2020-07-30 03:21:12 +02:00
Markus Reiter
24eff8f81a
Pass args
in SoftwareSpec
instead of using global args
.
2020-07-30 03:21:12 +02: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
William Ma
df8d22a29b
Remove debugging markers (oops)
2020-07-03 18:27:19 -04:00
William Ma
6e8f5d0958
Modify MultipleVersionsInstalledError to have a generic message
2020-07-03 18:25:49 -04:00
William Ma
525d1ac27d
Fix PR issues
2020-07-03 10:33:38 -04:00
William Ma
dff61c9eab
style: Fix style issues
2020-06-30 12:21:21 -04:00
William Ma
8a05b5258a
args: Refactor to load casks directly
2020-06-30 12:08:03 -04:00
William Ma
5900263cab
args: Add resolved_formulae_and_unknowns
2020-06-24 14:53:03 -04:00
William Ma
cbfea6c125
args: Add field for kegs and unknowns
2020-06-24 11:59:07 -04:00
Mike McQuaid
ef95b59ed4
Remove HomebrewArgvExtension
...
Fixes #5730
2020-05-23 19:39:11 +01:00