apainintheneck
cb64bc4df3
Move pkg type logic into search_name
...
Now the search_name method takes the command line
args and only returns package types that line up
with those args.
That means it will only return casks if casks are valid
and same with formulae.
2022-12-13 22:50:00 -08:00
Kevin
0afc41ceef
Explain edge case in install/cmd
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2022-12-13 20:31:33 -08:00
apainintheneck
daa87fa10f
Add specific examples to install cmd
...
- provide specific install instructions
when a cask/formula doesn't exist
and we search for similar ones
- print and exit early if a named formula that
was removed recently has the same name
- exit early if the tap is specified because
we don't get good search results
2022-12-12 21:04:59 -08:00
apainintheneck
a481729ade
Show casks in install not found output
...
- Move `search_names` and `print_missing_formula_help` out of `cmd/search.rb` to `search.rb`
- Change to using those functions in `cmd/install.rb` when a formula or cask doesn't exist
2022-12-10 13:02:38 -08:00
Ian Gregory
a715dec49d
Add --adopt
switch
...
Allows `brew install` & co. to adopt existing cask artifacts that are
identical to those being installed.
Discussion: #14006
2022-10-21 23:28:51 -04:00
Bo Anderson
9b99594753
Preliminary compatibility fixes for Ruby 3
2022-10-11 02:53:27 +01:00
hyuraku
634fcad1b2
add dry-run option to formula#install
2022-08-16 21:01:07 +09:00
hyuraku
93ebe42a72
add dry-run option to cask#install
2022-08-16 21:00:45 +09:00
Mike McQuaid
04ff6a18f4
Tweak --debug-symbols description.
2022-08-12 09:34:51 +01:00
Lukas Oberhuber
3d60d610dd
Merge branch 'master' into debug-symbols
2022-08-10 18:44:09 -10:00
fn ⌃ ⌥
71ab2f6e7a
Run periodic cleanup after installing all packages
2022-08-04 07:46:31 -07:00
Lukas Oberhuber
d35f2e76a7
Move Metrics/Blocklength disable to rubocop.yml
2022-08-02 09:06:28 -07:00
Lukas Oberhuber
5b1724ef33
Fix rubocop warning by ignoring for install_args
2022-08-01 15:27:17 -07:00
Lukas Oberhuber
215e545660
brew style
2022-07-26 19:28:30 +01:00
Lukas Oberhuber
d195f22522
Connecting up --debug-symbols
flag
...
This connects the calling of dsymutil and the retention of temporary
files. Still need to connect compilation to flag.
2022-07-26 12:15:53 +01:00
Mike McQuaid
2d5eab2e1c
brew style --fix
2022-06-30 08:56:21 +01:00
Rylan Polster
b896f6cb0d
Allow more developer commands with HOMEBREW_INSTALL_FROM_API
2022-06-16 21:31:15 -04:00
Rylan Polster
1e536217b2
Streamline loading casks from API
2022-06-15 16:35:49 -04:00
Bob Lail
26ea79e1e6
Increase Metrics/BlockLength limit instead of disabling the cop for the block in install_args
2022-01-11 08:34:51 -06:00
Bob Lail
9b678c365b
Add flag --overwrite
to brew install
to govern the keg-linking step
...
Allows you to avoid the `Keg::ConflictError` recommending that you invoke `brew link --overwrite` in scenarios when you know that that's how you'd proceed anyway.
2022-01-10 14:23:33 -06:00
Bo Anderson
6e37c67fba
Fix disabled args appearing in documentation.
2021-12-17 02:02:45 +00:00
Mike McQuaid
11c5f8f05a
Improve discovery of some environment variables
...
There's a few bits of functionality that Homebrew has changed over the
years, makes sense as a sensible default but some people find really
annoying:
- automatically running `brew update`
- automatically running `brew cleanup`
- automatically upgrading outdated dependents
- automatically reinstalling broken dependents
For each of these: let's improve the documentation of the commands
whose behaviour is changed and the environment variables themselves.
2021-11-25 09:10:59 +00:00
Rylan Polster
9fee68c500
Fix installing from API with tap names
2021-10-28 01:25:27 -04:00
Rylan Polster
7bb69e0b4c
Fix brew install
with tap regex
2021-10-27 01:42:08 -04:00
hyuraku
e44ac800c2
repair cask install quiet mode
2021-09-10 23:12:52 +09:00
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
FnControlOption
cf2800afec
install: fetch all formulae before install
2021-09-01 22:42:20 -07:00
Rylan Polster
99635bf3ae
Remove need for homebrew/cask to be tapped
2021-08-14 16:17:26 -04:00
Rylan Polster
e344cb6aff
Merge pull request #11648 from Rylan12/homebrew-json
...
Install formulae from JSON files
2021-07-13 02:54:49 -04:00
Mike McQuaid
0682239298
cmd/install: output missing formula name.
...
Otherwise if there's no search results then there's no indication what
was being searched for:
```
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
```
2021-07-12 12:07:10 +01:00
Rylan Polster
1e34b69cd4
Prioritize installing from JSON if env var is set
2021-07-12 03:23:42 -04:00
Nanda H Krishna
67b3562e9f
cmd/install: tweak --HEAD
description
2021-07-08 12:36:40 +05:30
Rylan Polster
22f986b89a
Install formulae from JSON files
2021-07-04 12:38:59 -04:00
Alexander Bayandin
35288995bc
cmd/install: do not print similar error messages
2021-06-22 18:06:53 +01:00
Rylan Polster
30be3e2340
Refactor install methods
2021-06-10 10:53:41 -04:00
Mike McQuaid
d73351251c
Deprecate, disable, delete code for next major/minor version.
...
Do the usual dance for bumping our major/minor version.
2021-04-09 09:30:36 +01: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
nandahkrishna
8e5451df2f
style: use parentheses for assignment in conditions
2021-02-12 18:33:37 +05:30
Mike McQuaid
d6957a3acb
Homebrew 3.0.0 deprecations/disables
2021-01-29 19:50:24 +00:00
EricFromCanada
6fc116318e
fixes for grammar and wording
2021-01-26 16:19:47 -05:00
EricFromCanada
2ed324ebc0
use backticks around suggested input, flags, and binaries
2021-01-26 16:19:47 -05:00
EricFromCanada
cd3cb6928b
indent suggested commands on subsequent line
...
and combine sequential puts calls
2021-01-26 15:36:44 -05:00
EricFromCanada
2e982cd2a2
use odie when commands encounter errors
2021-01-26 15:36:43 -05:00
Rylan Polster
64816651d0
Only tap homebrew/cask on CaskUnavailableError in brew install
2021-01-20 12:22:31 -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
Markus Reiter
7236faee25
Properly pass cask options in reinstall
.
2021-01-10 20:19:38 +01:00
Vítor Galvão
5dbe54d766
Docs: non-cask binaries are not overwritten by --force
2021-01-07 21:23:06 +00:00