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
fn ⌃ ⌥
a208ea9c92
info: highlight package name
2022-08-15 07:47:52 -07:00
Rylan Polster
243ff024e3
Remove debug message
2022-07-21 16:45:41 +02:00
Rylan Polster
f3e34230ad
Add --variations
option to brew info
2022-07-21 16:41:15 +02:00
Mike McQuaid
2d5eab2e1c
brew style --fix
2022-06-30 08:56:21 +01:00
Bo Anderson
1d36c42fb7
Support offline usage under HOMEBREW_INSTALL_FROM_API
2022-06-14 16:06:05 -04:00
Carlo Cabrera
c586aeffc8
cmd/info: use Formula.all
...
Fixes #13241 .
2022-05-04 16:41:25 +08: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
Rylan Polster
0b8032d421
Document HOMEBREW_INSTALL_FROM_API
2021-10-22 12:37:57 -04:00
Milo Lee
73e099aee7
Make brew style happy
2021-10-09 00:01:12 +08:00
Milo Lee
5cedb75a62
Handle the case superclass is a subclass of Formula
2021-10-08 10:13:29 +08:00
hyuraku
ce89ce1191
repair brew info description
2021-10-01 09:38:31 +09:00
Bo Anderson
4c48ace9d1
cmd/info: print backtrace to developers for unreadable formulae/casks
2021-09-17 00:17:22 +01:00
Rylan Polster
5d536d66fc
Rename HOMEBREW_JSON_CORE
to HOMEBREW_INSTALL_FROM_API
2021-08-27 00:24:15 -04:00
Rylan Polster
737dd1654b
Refactor API methods
2021-08-06 04:31:27 -04:00
Rylan Polster
2524e80196
Revert outdated changes to brew info
2021-07-14 18:20:23 -04:00
Rylan Polster
fb04053833
info: show accurate bottle information
2021-07-14 18:16:23 -04:00
Rylan Polster
3e01e02a02
Improvements based on code review
2021-07-14 10:19:29 -04:00
Rylan Polster
91fffeeff6
info: show latest version
2021-07-14 00:26:09 -04:00
Rylan Polster
08b44afcdf
cli/parser: allow options to be hidden
2021-06-08 22:02:32 -04:00
Rylan Polster
d60f549a48
info: add --bottle
option for JSON bottle info
2021-06-05 12:27:24 -04:00
Mike McQuaid
6f071a06f8
Use JSON.pretty_generate
...
It's dramatically more human readable for very little difference in
space.
2021-04-09 15:44:37 +01:00
Jonathan Chang
90db84242f
cmd/info: fix brew info --cask
on Linux
...
We should be able to provide info on casks even if installing
casks isn't supported on Linux.
2021-02-23 13:42:38 +11:00
nandahkrishna
8e5451df2f
style: use parentheses for assignment in conditions
2021-02-12 18:33:37 +05:30
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
d2c0fdfbcc
cmd/info: refactor-github_info
2021-01-08 00:14:33 +09:00
hyuraku
0a97cd18a5
set default args
2020-12-17 21:14:18 +09: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
Maxim Belkin
44cdb0f66c
info.rb: correctly check if the formula is bottled
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-12-08 10:26:07 -06:00
Mike McQuaid
9216d8abe6
rubocop-rails: make fixes.
2020-12-02 10:43:04 +00:00
Mike McQuaid
311c10636b
Deprecation fixes
...
- `brew uninstall --zap` replaces `brew cask zap`
- clarify how `--json` should behave
Fixes https://github.com/Homebrew/brew/issues/9296
2020-11-25 16:33:16 +00:00
Markus Reiter
9140b21d80
Support --cask
flag in brew info
.
2020-11-20 10:36:15 +01:00
EricFromCanada
dd1830e1e3
info: restore printing of statistics
2020-11-13 13:58:52 -05:00
Markus Reiter
da9289eff0
Add more type signatures.
2020-11-13 12:26:36 +01:00
Mike McQuaid
60046ac41c
Merge pull request #8893 from whoiswillma/william/integrate-brew-info
...
cmd/info: Add support for casks in brew info
2020-10-26 11:59:53 +00:00
William Ma
a463348631
cli/named_args: Rename method to be more consistent
2020-10-12 09:22:29 -04:00
William Ma
4c36cf2e8e
cmd/info: Add --json=v2 for outputing formula and cask json
2020-10-10 16:34:01 -04:00
Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
William Ma
9a8f4c7c96
cmd/info: Add support for casks
2020-10-09 19:57:48 -04:00
hyuraku
137d33290f
show cask info on browser
2020-09-28 13:10:06 +09:00
Rylan Polster
a8bcd92628
deprecate_disable: refactor and add to info
2020-09-07 13:00:02 -04: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
Mike McQuaid
8b97c27c21
brew style manual fixes
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
Markus Reiter
338fe0b6e0
Merge pull request #8397 from reitermarkus/document-options
...
Refactor and document `Options`.
2020-08-20 05:00:12 +02:00