Dustin Rodrigues
b776fb32de
change includecount to include_count for readability
2023-03-20 07:23:17 -04:00
Dustin Rodrigues
e5fba88035
use includecount argument in pluralize
2023-03-19 23:35:47 -04: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
Douglas Eichelberger
d56e2884aa
Enable typing in cmd/
2023-03-06 15:01:08 -08:00
Mike McQuaid
9296db0c41
Merge pull request #14839 from hyuraku/move-cask/cmd/info-to-cask/info
...
Move `cask/cmd/info` to `cask/info`
2023-03-01 12:25:26 +00:00
hyuraku
efdef5f26c
move cask/cmd/info to cask/info
2023-03-01 00:00:54 +09:00
Douglas Eichelberger
0eccc0e987
git grep -l Utils::Inflection | xargs gsed -i 's|Utils::Inflection|Utils|g'
2023-02-27 20:18:27 -08:00
Douglas Eichelberger
eb2b990575
Port more call sites
2023-02-27 20:17:33 -08:00
Mike McQuaid
4ef8632687
cmd/info: handle casks with API.
...
Fall back to default location.
2023-02-24 15:44:53 +00:00
Rylan Polster
f7fa5937d8
Allow brew info --json=v2
without taps with JSON API
2023-02-12 12:03:40 +00:00
EricFromCanada
dfc9906184
internal messaging fixes
2023-02-10 23:17:16 -05: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
932d2cf3b7
Merge pull request #14548 from Homebrew/revert-14382-deprecate-disable-remove
...
Revert "Add deprecations and disables"
2023-02-07 19:11:26 +01:00
Mike McQuaid
6882ac17e7
Revert "Add deprecations and disables"
2023-02-07 15:13:19 +01:00
Mike McQuaid
dbf02366b2
cmd/info: generate --json=v2
from local taps.
...
Fixes #14541
Co-authored-by: Issy Long <issyl0@github.com>
2023-02-07 15:03:56 +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
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