Nanda H Krishna
47a549e944
Fix style using brew style --fix
2021-06-02 11:43:16 +05:30
Connor Mann
3637924230
Fix style
2021-05-19 13:58:19 -04:00
Connor Mann
fe9a9bb24c
Rename to_keg
to to_default_kegs
2021-05-19 09:34:18 -04:00
Connor Mann
d46881c5e2
Rename to_kegs
to to_keg
2021-05-18 09:52:19 -04:00
Carlo Cabrera
a3a6af9d99
cmd/list: remove cask and ls flag conflicts
2021-03-27 01:20:21 +00:00
Carlo Cabrera
e966808ac6
cmd/list: always use ls when no named args are passed
...
This has the added benefit of making the indentation in the output of
`brew list` uniform between formulae and casks.
Follow-up to #10899 . See, in particular,
https://github.com/Homebrew/brew/pull/10899#discussion_r598659321
2021-03-27 01:20:20 +00:00
Carlo Cabrera
e1385b0754
Merge pull request #10899 from carlocab/ls-delineate
...
cmd/list: delineate formulae and casks
2021-03-25 17:52:41 +00:00
Carlo Cabrera
4dccc2ef7f
cmd/list: list formulae only if one is installed
...
We need the `HOMEBREW_CELLAR.exist?` check to avoid errors in new
installations, which may not have a `Cellar` directory.
2021-03-22 17:15:56 +00:00
Bo Anderson
32d532fb49
cmd/list: fix Cask listing
2021-03-22 16:21:02 +00:00
Carlo Cabrera
a88d65acc7
cmd/list: list casks only if one is installed
2021-03-22 14:12:42 +00:00
Carlo Cabrera
8538970567
cmd/list: delineate formulae and casks
...
Listing everything without qualifying which is which is confusing for
some users.
Fixes #10897 .
2021-03-22 13:13:04 +00:00
Mike McQuaid
d6957a3acb
Homebrew 3.0.0 deprecations/disables
2021-01-29 19:50:24 +00: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
Issy Long
90868fff34
cmd/list: Remove help text about -l
displaying file sizes
...
- It doesn't work on the `HOMEBREW_CELLAR` dir for some reason, and
using `du -sh` instead (PR 10131) was an extra call that we don't
need.
- (I had to edit the man page manually as `brew man` gives me "Broken
pipe" errors.)
2020-12-25 19:03:57 +00:00
Issy Long
1b4646dee4
cmd/list: Limit -lrt
options to being passed with --formula
...
- These are documented as only working on formulae, but users expect the
same options (long format, reverse order or sort by modified time) to
be passed to both formulae and casks in the default `brew list`. The
output looks weird as they're not. Hence, constrain these to be
`--formula`-only.
- This was added originally in 5adb76a5babdccd2c4edfb8752ac979ed14716ca,
but then disappeared.
2020-12-24 13:33:36 +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
Mike McQuaid
9216d8abe6
rubocop-rails: make fixes.
2020-12-02 10:43:04 +00:00
EricFromCanada
c65d4617bd
list: deprecate --unbrewed
in favour of brew --prefix --unbrewed
2020-12-01 12:02:45 +00:00
EricFromCanada
0604005405
list: refactor options to catch edge cases
2020-12-01 12:02:44 +00:00
Steve Peters
432e762e9b
Only deprecate "brew list" without arguments
...
It was deprecated in 2.5.7 to accompany the deprecation
of "brew cask" commands, so wait to disable it until
"brew cask" commands are disabled as well.
2020-11-30 17:09:15 -08:00
Mike McQuaid
f15c4183e0
cmd/list: --formula is no longer a default.
...
This behaviour is disabled.
2020-11-25 13:47:05 +00: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
EricFromCanada
72bc057014
manpage: fixes for formatting
2020-11-16 08:02:50 -05:00
EricFromCanada
f784b7107f
manpage: fixes for grammar
2020-11-16 07:56:50 -05:00
Markus Reiter
da9289eff0
Add more type signatures.
2020-11-13 12:26:36 +01:00
Mike McQuaid
438874af3c
list: more parameters fixes.
...
- Remove incorrect `--formula` requirements.
- Fix bad `OptionConstraintError` output message.
Fixes #9037 .
2020-11-03 16:50:03 +00:00
Mike McQuaid
5adb76a5ba
list: fix flag handling.
...
Fix `-1` and other flags so they're handled correctly with casks. Use
the "right" exceptions for declaring invalid combinations and change
their parent class so that `--help` is printed nicely too.
Fixes #9033
2020-11-03 12:29:58 +00:00
Mike McQuaid
a0a9fa241f
Merge pull request #8851 from Akylzhan/patch
...
cmd/list.rb: --formula and --cask as default option on TTY
2020-10-13 11:52:19 +01:00
Akylzhan Sauranbay
c8809ce730
cmd/list.rb: --formula, --cask as default on TTY outputs
...
cmd/list.rb: --formula, --cask as default TTY:
cmd/list.rb: proper deprecated message on non TTY outputs
update manpage
update zsh completion
updated manpages/brew.1
update tests
return list_casks
list_spec.rb: not output to stderr
2020-10-12 14:52:03 +06: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
William Ma
fa7bd3bff6
args: Migrate usage of args loading methods to args.named
2020-08-23 09:02:20 -04:00
Markus Reiter
b48bc316e0
Use CLI::Parser
for cask
commands.
2020-08-13 05:15:15 +02:00
William Ma
7d8aad4656
list: Replace Cask::Cmd with class method
2020-08-10 20:35:31 -04:00
Mike McQuaid
3875f16782
Fix --formula and --cask flags.
...
These were all made `--formulae` and `--casks` for consistency but that
doesn't behave as expected because they have special behaviours in
`args`. Instead, use the singular form everywhere.
2020-08-07 09:53:30 +01:00
Mike McQuaid
ced084bd49
Handle casks in commands more consistently.
...
- Ensure the usage documentation always mentions casks when appropriate
- Use --formulae or --casks consistently
- Provide --formulae and --casks switches to upgrade
- Mark more switches as conflicting
2020-08-06 09:25:45 +01:00
Bo Anderson
25009f94e7
cmd/list: remove ARGV usage
2020-08-03 12:45:16 +01:00
Rylan Polster
c494789d70
list: pass args properly
2020-08-01 10:56:21 -04:00
Markus Reiter
d4c2ffd705
Refactor CLI::Parser
.
2020-07-31 15:07:17 +02:00
William Ma
62a5614850
list: Update documentation
2020-07-09 11:21:22 -04:00
William Ma
8f3d230995
list: Remove extraneous flag conflicts
2020-07-08 20:39:54 -04:00
William Ma
28c0962430
list: Integrate brew list with brew cask list
2020-07-08 12:02:42 -04:00
Bo Anderson
95f226cf51
cmd/list: fix Hombrew typo
2020-04-27 00:47:24 +01:00
Mike McQuaid
a7fe0ed847
cmd: use more and cleanup new args APIs.
2020-03-05 09:40:15 +00:00
Gautham Goli
685a6b4da6
ARGV: Replace usages of ARGV.named with Homebrew.args.named
2019-12-18 20:38:21 +05:30
Mike McQuaid
5904aab98a
Merge pull request #6622 from zachauten/argv_kegs
...
Moved kegs from ARGV to args.rb
2019-11-13 00:22:09 +00:00
Zach Auten
fd429d0d75
Moved kegs from ARGV to args.rb
2019-11-09 11:56:47 -05:00
R Primus
5ffc7e9d66
Change spelling of [Ss]ummarize to British english
2019-10-30 18:52:02 +00:00