Mike McQuaid
bbf5a9f479
env_config: use environment variables consistently
...
- use e.g. `$HOMEBREW_*` for cases where only the environment variable
is the entire backtick-quoted string
- use e.g. `${HOMEBREW_*}` for cases where the environment variable is
part of a backtick-quoted string to make clear what parts are variable
and what parts are not
- use `export HOMEBREW_*=...` for cases where we're talking about
setting the environment variable (because it likely needs to be
exported to work how they want)
Inspired by https://github.com/Homebrew/homebrew-bundle/pull/1579 making
similar changes for Homebrew/homebrew-bundle.
2025-01-27 14:21:27 +00:00
Michael Cho
b1de5a22d2
cmd/--cache: avoid exception on missing HEAD
...
Also add cask to description
2024-09-26 09:49:30 -04:00
Douglas Eichelberger
7bbf0a3206
Port Homebrew::Cmd::Cache
2024-04-01 15:53:56 -07:00
Mike McQuaid
ea2892f8ee
brew.rb: handle missing args.
2024-03-07 16:20:20 +00:00
Bo Anderson
310b5ecbe7
Introduce Formulary platform cache
2024-01-09 11:12:49 +00:00
Eric Knibbe
8e01227add
cmd/deps: show deps for head spec with --HEAD
...
Plus a few man page fixes
2023-10-13 00:29:09 -04:00
Douglas Eichelberger
d01cda2815
Turn up the types
2023-08-12 22:01:22 -07:00
Douglas Eichelberger
08e46c18cd
Add type to Formula attrs
2023-07-24 14:12:36 -07:00
Carlo Cabrera
f44e74dc34
cmd/--cache: undeprecate --bottle-tag
...
This is useful for quickly examining bottles with something like
brew fetch --bottle-tag=$tag $formula && \
tar xf "$(brew --cache --bottle-tag=$tag $formula)"
See discussion at #15632 .
2023-07-07 15:09:21 +08:00
Mike McQuaid
7da934f7e2
Deprecate/disable/delete code.
...
The next release after this is merged will be 4.1.0.
Co-authored-by: Markus Reiter <me@reitermark.us>
2023-07-06 16:56:20 +01:00
Markus Reiter
4cffb51b80
Fix wrong method in --cache
and fetch
.
2023-05-22 22:09:17 +02:00
Markus Reiter
486c3765ce
Add --os=all
and --arch=all
options.
2023-05-17 15:26:46 +02:00
Carlo Cabrera
69c16739d2
fetch: remove use of args
from CLI parser
...
See discussion at #15382 .
2023-05-09 18:07:32 +08:00
Douglas Eichelberger
24cf6076e8
brew style --fix
2023-04-24 20:42:39 -07:00
Douglas Eichelberger
d56e2884aa
Enable typing in cmd/
2023-03-06 15:01:08 -08:00
Rylan Polster
4310674776
Require an argument to --bottle-tag
in fetch
and --cache
2022-06-28 11:20:22 -04:00
fn ⌃ ⌥
b766799d95
Add missing --formulae/--casks
aliases for --formula/--cask
2021-11-18 12:41:03 -08:00
Bo Anderson
59dc0ed652
formula_installer: fix error if a compatible bottle was not found
2021-09-20 20:57:39 +01:00
FnControlOption
794510f4e0
cmd/cache: add --bottle-tag flag
2021-08-26 14:46:30 -07:00
fn ⌃ ⌥
7beed25227
cmd/cache: add --HEAD switch
2021-08-23 20:37:02 -07:00
Jonathan Chang
69ecbc3979
cmd/cache: conflict with cask
2021-01-27 14:54:39 +11: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
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
a43e47cfaf
cmd/--cache: refactor
2020-12-28 23:14:22 +09:00
Markus Reiter
1baf98ea69
Add signatures for cmd/--cache
.
2020-11-29 22:37:24 +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
Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
William Ma
fa7bd3bff6
args: Migrate usage of args loading methods to args.named
2020-08-23 09:02:20 -04:00
William Ma
91a2eb8aad
--cache: Use convenience methods for loading formulae and casks
2020-08-10 14:03:37 -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
Markus Reiter
620ca4177e
Pass args
to FormulaInstaller
instead of using global args
.
2020-07-30 03:21:12 +02:00
Markus Reiter
24eff8f81a
Pass args
in SoftwareSpec
instead of using global args
.
2020-07-30 03:21:12 +02:00
Markus Reiter
a6bc9e155a
Add helper functions for --cache
and fetch
explicitly.
2020-07-25 02:37:10 +02:00
EricFromCanada
910c85f782
docs: improve commands' help output
2020-06-25 12:01:52 -04:00
William Ma
d0c138ad98
cache: Remove slashes from documentation
2020-06-23 11:50:50 -04:00
William Ma
efdf9ce1aa
style: Fix style
2020-06-23 09:50:45 -04:00
William Ma
11fbf9d035
cache: Add flags for printing only formulae or casks
2020-06-23 09:30:24 -04:00
William Ma
78ccb05166
Fix style issues
2020-06-22 16:07:18 -04:00
William Ma
2a11bcf501
rework error handling to show the error for both formula and cask loading
2020-06-22 15:39:15 -04:00
William Ma
0495281325
home: write tests using cask as argument
2020-06-22 10:46:59 -04:00
William Ma
9b1d58c53c
cache: alert user when no formula or cask matches the argument
2020-06-19 14:00:26 -04:00
William Ma
cf76f6e721
cache: integrate brew --cache and cask --cache
2020-06-19 10:37:31 -04:00
Mike McQuaid
a7fe0ed847
cmd: use more and cleanup new args APIs.
2020-03-05 09:40:15 +00:00
Gautham Goli
22e25dd593
argv: move formulae to cli/args
2019-12-11 16:36:23 +05:30
Mike McQuaid
c4f72312ce
Fixup brew style
failures.
2019-04-30 09:19:18 +01:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files.
2019-04-20 13:27:36 +09:00