Mike McQuaid
5987c5c1d0
Add stub Ruby commands for all Bash commands.
...
This gets us pretty similar (but easier to manage) manpage output but
much nicer completions etc. for all these commands.
2024-07-14 23:12:53 -04:00
Mike McQuaid
21f586c4bf
cmd/{casks,formulae}: handle sharding.
...
- Allow subdirectories inside `Casks`/`Formula` directories.
- DRY up repeated code with some variables.
2023-07-18 12:57:54 +01:00
Omoeba
b43ed6e765
cmd/formulae,cmd/casks: include casks/formulae in local non-core taps when the API is used
...
Fixes #15229
2023-05-25 01:49:21 -07:00
Bo Anderson
c2342eca91
Further improvements to API handling in shell
2023-02-19 05:38:13 +00:00
Mike McQuaid
2a5d41d41b
Revert "Merge pull request #14547 from Homebrew/revert-14412-homebrew_install_from_api_default"
...
This reverts commit f4e60482791d2ff628efadfdbf0d14d9237d2d29, reversing
changes made to e26784f424061ca16987afcb21e036c66a298492.
2023-02-07 19:25:40 +01:00
Mike McQuaid
0575903868
Revert "HOMEBREW_INSTALL_FROM_API: make the default for everyone."
2023-02-07 15:13:23 +01:00
Mike McQuaid
5f6c69bca2
HOMEBREW_INSTALL_FROM_API: make the default for everyone.
...
- remove all places we check the flag so it's a no-op now
- flip the messaging to refer to `HOMEBREW_NO_INSTALL_FROM_API` where
relevant
- adjust the documentation
2023-02-05 18:13:08 +01:00
Mike McQuaid
4a03603f68
Add HOMEBREW_NO_INSTALL_FROM_API
...
This allows HOMEBREW_INSTALL_FROM_API functionality to be disabled and will stick around once
HOMEBREW_INSTALL_FROM_API is made the default behaviour.
Co-authored-by: Eric Knibbe <enk3@outlook.com>
2023-01-18 15:50:13 +00:00
Michael Cho
a0e9352ad2
cmd/formulae.sh: read cached JSON when using API
2022-12-19 19:41:48 -08:00
Ian Gregory
9013ca2a22
Prevent brew casks
from finding formulae at tap root
2022-11-20 16:22:18 -05:00
Gautham Goli
e4118bc4ca
Fix shellcheck style errors
2021-05-18 17:10:20 +05:30
Mike McQuaid
7af68d0f8e
Fix shellcheck failures
...
A new version of `shellcheck` (I think?) brought us so new warnings and
errors.
To fix:
- pass `--source-path` so we don't need to stop `shellcheck` trying to
read sourced files every time
- disable some more warnings/errors we don't care about fixing
2021-04-22 13:18:44 +01:00
Kid
de8e87c7d0
Syntax fix
2021-01-08 18:10:25 +08:00
Kid
9b9c0c8626
Add homebrew-items
2021-01-08 18:04:51 +08:00
Mike McQuaid
7c309ee7a7
formulae: fix sed extended regex flag on macOS.
...
Closes #9367
Fixes #9388
2020-12-02 17:40:10 +00:00
Maxim Belkin
bb944d8a37
cmd/formulae.sh: fix spaces
2020-12-01 12:59:32 -06:00
Maxim Belkin
ca9ad61dcf
cmd/formulae.sh: compatibility with GNU Sed
2020-12-01 12:03:38 +00:00
Mike McQuaid
2a29715042
cmd/formulae.sh: improve and refactor.
2020-11-20 12:43:38 +00:00
metacollin
7b67c000b0
Fix docs
2020-11-19 20:50:34 -07:00
metacollin
e428ca55be
Removed escape \ in front of commands
2020-11-19 20:43:09 -07:00
metacollin
917b4b964f
Declare local variables seperately, split up line for readability.
2020-11-19 20:33:18 -07:00
metacollin
7102cc84b9
Documentation wording fixes
2020-11-19 20:27:19 -07:00
metacollin
c176f28f39
Added fixes.
2020-11-19 20:18:08 -07:00
metacollin
b04a5ffa0b
Turbocharged formula name completion
2020-11-13 05:36:53 -07:00