FnControlOption
eb16e10902
messages: record cask installations.
...
This is used to record installation times and also to determine
whether to display caveats.
2021-09-02 08:44:00 -07:00
EricFromCanada
c234d1ea03
upgrade: list upgradeable dependencies/migrations/cleanups on dry run
2021-08-31 12:27:14 -04:00
Rylan Polster
5d536d66fc
Rename HOMEBREW_JSON_CORE
to HOMEBREW_INSTALL_FROM_API
2021-08-27 00:24:15 -04:00
Rylan Polster
99635bf3ae
Remove need for homebrew/cask to be tapped
2021-08-14 16:17:26 -04:00
Rylan Polster
737dd1654b
Refactor API methods
2021-08-06 04:31:27 -04:00
Rylan Polster
1e34b69cd4
Prioritize installing from JSON if env var is set
2021-07-12 03:23:42 -04:00
Rylan Polster
e316c4f013
Rename Utils::BottleAPI
to BottleAPI
2021-07-05 11:45:15 -04:00
Rylan Polster
ca5f6026ed
Fix tests
2021-07-05 11:29:27 -04:00
Rylan Polster
36dd69dd60
Rename download_bottles
to fetch_bottles
2021-07-05 10:55:34 -04:00
Rylan Polster
22f986b89a
Install formulae from JSON files
2021-07-04 12:38:59 -04:00
Bo Anderson
3bf38a10ee
cmd/upgrade: fix --dry-run
...
Fixes #10909 .
2021-03-22 23:58:04 +00:00
Bo Anderson
d14a0bb131
Remove FormulaInstaller.prevent_build_flags
2021-03-22 16:11:27 +00:00
Bo Anderson
8e98ce69f3
Stricter handling of CLI args
2021-03-18 16:41:57 +00:00
Seeker
9a99c40e37
Fix remaining broken cask options in upgrade
2021-01-22 13:52:42 -08:00
António Meireles
19f41bddfd
Properly allow quarantine in 'upgrade'
...
issue was raised in #9139 for upgrade/reinstall --cask and was then
closed by #10284 . Issue is that #10284 only actually fixed the reinstall
command, leaving behindd the 'upgrade' one which this now fixes.
Signed-off-by: António Meireles <antonio.meireles@reformi.st>
2021-01-22 17:39:19 +00:00
Rylan Polster
d1f3e39b7b
Update commands to generate usage banner
2021-01-18 21:20:11 -05:00
Rylan Polster
5286be91cb
Merge pull request #10229 from Rylan12/generate-completions
...
Generate bash completions automatically
2021-01-18 11:47:26 -05:00
Dawid Dziurla
332372469f
cmd: indicate multiple named args in usage banner
2021-01-15 13:04:00 +01:00
Rylan Polster
3af16832d9
Generate bash completions automatically
2021-01-15 00:03:28 -05:00
Rylan Polster
da811373d3
Add named_args DSL for commands
2021-01-13 17:09:42 -05:00
Seeker
f476bcafcb
upgrade: show formula caveats after casks have been updated
2021-01-11 11:43:11 -08:00
Vítor Galvão
5dbe54d766
Docs: non-cask binaries are not overwritten by --force
2021-01-07 21:23:06 +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
bade687f11
upgrade: fix style in help text
2020-12-20 13:45:33 -05: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
EricFromCanada
bcdb0c7698
upgrade: show upgradeable dependents during dry run
2020-11-17 18:26:35 -05:00
Markus Reiter
9f458142b7
Merge pull request #9146 from reitermarkus/upgrade
...
Mention `--greedy` when no casks were upgraded.
2020-11-16 22:03:10 +01:00
Markus Reiter
3ee66d8c0d
Add type annotations related to upgrade.
2020-11-16 19:45:15 +01:00
EricFromCanada
72bc057014
manpage: fixes for formatting
2020-11-16 08:02:50 -05:00
Markus Reiter
da9289eff0
Add more type signatures.
2020-11-13 12:26:36 +01:00
Mike McQuaid
0606c9fd82
outdated/upgrade: fix upgrade alias edge case.
...
If you're going to follow an alias to find the outdated formula then
ensure that the latest one isn't already installed.
Fixes https://github.com/Homebrew/homebrew-core/issues/63971
2020-11-05 20:33:51 +00:00
Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
Markus Reiter
e117a68f42
Force brew upgrade
to treat arguments as casks if --cask
is passed.
2020-10-08 13:43:15 +02:00
Markus Reiter
10e3b63b7b
Inline install
, reinstall
and upgrade
options.
2020-10-08 11:33:38 +02:00
Markus Reiter
7743fed77b
Add “GLOBAL CASK OPTIONS” section to man page.
2020-10-08 11:07:35 +02:00
Markus Reiter
7f14e55f99
Add missing cask options to brew upgrade
.
2020-10-08 11:07:35 +02:00
Markus Reiter
90f145114c
Pass Cask::Config
to Caskroom.casks
.
2020-10-01 01:03:13 +02:00
Mike McQuaid
dbe427073d
Merge pull request #8399 from MLH-Fellowship/migrate-to-args-named
...
args: Migrate usage of args loading methods to args.named
2020-08-25 10:07:27 +01:00
Markus Reiter
4937e4bbc3
Refactor and document Upgrade
.
2020-08-24 19:42:24 +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
Mike McQuaid
863a0964e2
cmd/upgrade: fix cask/formula args (again).
...
Fixes https://github.com/Homebrew/brew/issues/8228#issuecomment-670161766
2020-08-07 10:25:29 +01: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
Markus Reiter
b1ca2f7e3c
Add shared method for upgrading casks.
2020-08-05 13:55:04 +02:00
Markus Reiter
d4c2ffd705
Refactor CLI::Parser
.
2020-07-31 15:07:17 +02:00
Markus Reiter
c470a6ff43
Pass args
directly to prevent_build_flags
.
2020-07-30 03:21:12 +02:00
Markus Reiter
20bd4280ff
Pass args.cc
to Install
.
2020-07-30 03:21:12 +02:00