Markus Reiter
8a1f8ab858
Pass args
to FormulaInstaller
instead of using global args
.
2020-07-25 04:21:21 +02:00
Markus Reiter
6c050492ee
Pass args
to Analytics
instead of using global args
.
2020-07-25 03:57:43 +02:00
Markus Reiter
25b3632c4c
Pass args
to ENV
instead of using global args
.
2020-07-25 03:57:43 +02:00
Markus Reiter
a6bc9e155a
Add helper functions for --cache
and fetch
explicitly.
2020-07-25 02:37:10 +02:00
Markus Reiter
cfbe1fb3c7
Add helper functions for deps
and uses
explicitly.
2020-07-25 02:37:10 +02:00
Seeker
fb2e228e9a
Merge pull request #8044 from SeekingMeaning/uses+dependents
...
cmd/uses: mention "dependents" in help text
2020-07-22 10:44:44 -07:00
Jonathan Chang
45c78ffe9c
Merge pull request #8060 from jonchang/update-report-speedup
...
update-report: speed up automatic updates
2020-07-23 00:57:37 +10:00
Jonathan Chang
26549d312b
update-report: faster autoupdate
...
This disables verbose reporting of new formulae versions when
automatically updating before e.g. `brew install`.
2020-07-22 22:53:03 +10:00
Mike McQuaid
e4eff8ebb6
Merge pull request #7974 from MLH-Fellowship/integrate-doctor
...
doctor: Run cask doctor checks in brew doctor
2020-07-22 13:27:53 +01:00
Seeker
de3edd1c24
cmd/uses: mention "dependents" in help text
2020-07-20 11:26:56 -07:00
Tim Dorr
45368c8119
Add a default back to INFOPATH
...
It looks like #7738 removed the default unintentionally. This adds it back.
For scripts that `set -u`, this will fail if $INFOPATH is not already set (`INFOPATH: unbound variable`). This provides an empty default, but one that will still satisfy the trailing colon requirement.
2020-07-19 13:37:52 +10:00
Jonathan Chang
ea47dce9ee
Merge pull request #7991 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-0.88.0
...
build(deps): bump rubocop from 0.87.1 to 0.88.0 in /Library/Homebrew
2020-07-14 00:40:36 +10:00
Jonathan Chang
76709d82c5
Fix brew style
.
2020-07-13 23:24:14 +10:00
Adrian Ho
c166667666
shellenv: Fix shell detection
...
It currently switches on `$SHELL`, which points to the user's login shell. However, `shellenv` may be used in contexts where the running shell isn't `$SHELL` (e.g. csh-based `cron` scripts), and Linux desktop environments may set up user sessions in ways that trip up the current algorithm (see #7965 for an example). To work correctly in all circumstances and environments, its output should be determined by the context (calling shell) instead.
Fixes #7965 .
2020-07-11 22:28:27 +08:00
William Ma
447ea12d38
doctor: Move cask doctor checks to brew diagnostics
2020-07-10 10:36:59 -04: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
William Ma
525d1ac27d
Fix PR issues
2020-07-03 10:33:38 -04:00
William Ma
1826be81f2
style: Replace Hash.new with {}
2020-07-02 15:29:58 -04:00
William Ma
eb1ea006f2
uninstall: Refactor when using --force
2020-07-02 15:28:41 -04:00
William Ma
3459931a8d
Merge branch 'master' into integrate-uninstall-reinstall
2020-07-02 15:13:10 -04:00
Mike McQuaid
2c133a3d45
Check installed dependents on install and reinstall
...
It's not sufficient to do this merely on `brew upgrade` because
`brew install` and `brew reinstall` can also result in formulae being
upgraded.
This requires moving logic from `cmd/upgrade.rb` to `upgrade.rb`. To
save you searching the diff the changes that resulted from doing that:
- Query the installed formulae from class state in `FormulaInstaller`
rather than the (incomplete) list that we passed into it.
- Don't output the "Checking dependents" message. It was there for
systems and configurations where this is slow but for most users
and most installations this will be a (annoying, noisy) no-op.
Fixes https://github.com/Homebrew/brew/issues/7860
2020-07-02 12:53:52 +01:00
Mike McQuaid
4e10341277
Merge pull request #7752 from SMillerDev/cask/readall
...
Support casks in readall
2020-07-01 12:19:30 +01:00
William Ma
72dcbd6fda
style: Dedent cask uninstall block
2020-06-30 13:43:45 -04:00
William Ma
bb939323a7
Merge branch 'master' into integrate-uninstall-reinstall
2020-06-30 13:33:06 -04:00
William Ma
f3ae2fdfdc
reinstall: Replace with more specific imports
2020-06-30 13:22:21 -04:00
William Ma
dff61c9eab
style: Fix style issues
2020-06-30 12:21:21 -04:00
William Ma
8a05b5258a
args: Refactor to load casks directly
2020-06-30 12:08:03 -04:00
Lionell
fb4db63e3b
Merge branch 'master' into license
2020-06-30 22:25:17 +08:00
EricFromCanada
68947f2af9
cmd/options: add flag to list a command's options
2020-06-28 12:42:23 -04:00
Lionell
5f6917ae7c
Merge branch 'master' into license
2020-06-28 02:07:53 +08:00
Michka Popoff
6eb80c67a4
install: add backtrace on failure
...
The error message might be useless alone
2020-06-27 09:59:56 +02:00
William Ma
1044cb91c3
Merge branch 'master' into integrate-uninstall-reinstall
2020-06-26 09:18:19 -04:00
EricFromCanada
910c85f782
docs: improve commands' help output
2020-06-25 12:01:52 -04:00
Lionell
ff7a80ebf5
Merge branch 'master' into license
2020-06-25 21:51:39 +08:00
Mike McQuaid
ac0665daff
Refer to default branch in links with HEAD
...
Anywhere we can use `blob/master` we can use `blob/HEAD` instead. This
will make life easier if we ever rename our default branch in future
(once/if Git and GitHub provides the necessary tooling to do so).
2020-06-25 11:38:40 +01:00
Lionell
57fd1fdc7e
Merge branch 'master' into license
2020-06-25 13:42:27 +08:00
William Ma
e733fa16a2
uninstall: Refactor to use AbstractCommand instead of declaring a class method
2020-06-24 15:08:42 -04:00
William Ma
d1004c8143
reinstall: Add ability to reference casks from brew reinstall
2020-06-24 15:03:35 -04:00
William Ma
90c26dadc7
uninstall: Add ability to reference casks from brew uninstall
2020-06-24 11:59:55 -04:00
Mike McQuaid
1dbbb5e58c
Merge pull request #7789 from MLH-Fellowship/cask-integration
...
Integrate `--cache` and `home` with cask
2020-06-24 09:02:25 +01: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
27abc8c50b
home: Print info for each formula/cask opened
2020-06-23 09:44:17 -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
rmnull
0f4e61062c
brew info --analytics --days=30 and --days 30 both are valid. Added this for --category as well.
2020-06-20 02:09:22 +05:30