Mohammad Zain Abbas
e058da1706
Merge branch 'master' into mohammad
2022-09-14 05:19:50 +02: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
Mohammad Zain Abbas
eb2dcf7ea9
Update livecheck command: Casks don't have resource blocks
...
Co-authored-by: Nanda H Krishna <me@nandahkrishna.com>
2022-07-31 12:29:20 +05:00
Mohammad Zain Abbas
825707a219
Refactored a bit
2022-07-27 20:54:28 +02:00
Mohammad Zain Abbas
a8c1c0c841
Updated description for resource's option in livecheck command
2022-07-27 18:19:14 +02:00
Mohammad Zain Abbas
32659afdbe
Updated livecheck command for resources
2022-07-27 13:53:54 +02:00
Mohammad Zain Abbas
bc687c6358
Added check resources_only
2022-07-24 15:47:15 +02:00
Mohammad Zain Abbas
ebf52091eb
Check only formulas with resources
2022-07-24 14:14:10 +02:00
Mohammad Zain Abbas
0ee69e2c63
Refractoring for livecheckable resources
2022-07-21 20:02:15 +02:00
Mohammad Zain Abbas
4aa3cc6c97
Minor
2022-07-18 15:03:05 +02:00
Mohammad Zain Abbas
2d231a3478
More compact way to get livecheckable resources
2022-07-18 14:49:32 +02:00
Mohammad Zain Abbas
f8320c89ed
Selected all livecheckable resources
2022-07-18 14:42:43 +02:00
Mohammad Zain Abbas
82057003a7
Selected all formulas with livecheckable resources
2022-07-18 14:36:27 +02:00
Mohammad Zain Abbas
ad1a9b5970
Fetched all formulas with livecheckable resources
2022-07-18 14:07:33 +02:00
Mohammad Zain Abbas
dba5754c9f
Filter out resources with livecheck block: Work in progress
2022-07-18 14:03:40 +02:00
Mohammad Zain Abbas
8ef6118ba0
Work in progress: Fetch all resources with livecheck block
2022-07-17 13:02:22 +02:00
Mohammad Zain Abbas
59165ed3ec
Get all resources in all formulae
2022-07-17 12:47:20 +02:00
Mohammad Zain Abbas
7156c95b82
Added --resources
option in livecheck cmd
2022-07-17 12:45:29 +02:00
apainintheneck
3b65ecaf4c
livecheck: fix path to livecheck watchlist
2022-06-21 17:57:19 -07:00
Bo Anderson
a2033c397e
Use EnvConfig methods over direct ENV access
2022-06-17 19:47:56 +01: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
nandahkrishna
8ddf9b37bd
Apply suggestions from code review
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-03-05 18:55:51 +05:30
nandahkrishna
7d5216c500
Improve formula/cask disambiguation
2021-03-04 23:56:04 +05:30
nandahkrishna
22cc750c66
livecheck and bump: formula/cask disambiguation
2021-03-04 23:56:04 +05:30
Seeker
5dbdcbcb6b
livecheck: fix filtering of watchlist with --formulae/--casks flag
2021-01-29 13:26:50 -08: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
cf654da251
dev-cmd: indicate multiple named args in usage banner
2021-01-15 13:04:07 +01:00
Rylan Polster
da811373d3
Add named_args DSL for commands
2021-01-13 17:09:42 -05:00
hyuraku
ffc5c3206e
repair message
2020-12-19 22:59:27 -05:00
hyuraku
9f7e471382
livecheck: raise error if no watchlist
2020-12-19 22:59:26 -05:00
Sam Ford
e604cf742b
dev-cmd/livecheck: use safe navigation on #sort_by
2020-12-19 22:59:26 -05:00
Markus Reiter
f711352cfd
Add audit for livecheck
in casks.
2020-12-14 15:44:35 +01:00
Sam Ford
15a868c5e6
dev-cmd/livecheck: respect --cask and --formula
...
When running `brew livecheck --cask` or `brew livecheck --formula`,
livecheck wasn't properly respecting these flags. It should have
worked by only including the casks or formulae in the watchlist but
instead these flags were treating all the names in the watchlist as
formulae or casks, which doesn't work properly.
This addresses the issue by always using `#to_formulae_and_casks`
on the watchlist names and then using `#reject` to conditionally
exclude formulae or casks based on whether the related flags were
passed to `brew livecheck`.
2020-12-12 17:43:26 -05:00
Sam Ford
7b14f7446d
dev-cmd/livecheck: format usage_banner
2020-12-12 17:43:25 -05:00
Markus Reiter
f35829dd37
Load formulae/casks from tap files.
2020-12-12 17:43:24 -05:00
Markus Reiter
00e219caf9
Fix type error.
2020-12-12 17:43:24 -05:00
Markus Reiter
af56a99a37
Use symbol for respond_to?
.
2020-12-12 17:43:24 -05:00
Markus Reiter
3b366d05b9
Fix code style.
2020-12-12 17:43:23 -05:00
Seeker
90067ea8ed
Add --formula/--formulae
and --cask/--casks
2020-12-12 17:43:23 -05:00
Seeker
a7b36ee9ea
Update help text
2020-12-12 17:43:23 -05:00
Seeker
f06f83ca69
Rename livecheck_formulae_and_casks
to run_checks
2020-12-12 17:43:23 -05:00
Seeker
e40bc65414
Sort formulae_and_casks_to_check in Livecheck#livecheck
2020-12-12 17:43:22 -05:00
Seeker
4b87da4da9
Initial small fixes
...
- Skip blank lines in watchlist
- Initialize Livecheck#version as nil
- Simplify livecheck_version logic
- Make test a bit more understandable
2020-12-12 17:43:22 -05:00
Seeker
6794a78087
livecheck: add support for casks
2020-12-12 17:43:21 -05:00
Markus Reiter
5be4c9b5e0
Upgrade typed
sigils.
2020-11-25 17:04:19 +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
nandahkrishna
cf293d0ef5
livecheck: progress bar for JSON output
...
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
Co-authored-by: Dustin Rodrigues <dust.rod@gmail.com>
2020-09-18 02:40:51 +05:30
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