116 Commits

Author SHA1 Message Date
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
William Ma
36520b0a9d cache: fix bug when calling class method 2020-06-22 11:29:46 -04:00
William Ma
cf76f6e721 cache: integrate brew --cache and cask --cache 2020-06-19 10:37:31 -04:00
Mike McQuaid
ae7e58ef78
Merge pull request #7488 from danielbayley/master
cat: Allow 'bat' to find existing configuration
2020-06-12 10:45:11 +01:00
Mike McQuaid
aa81982aba
brew style --fix 2020-06-02 09:49:23 +01:00
Sean Molenaar
3567892802
Add notibility checks for casks 2020-05-26 14:21:25 +02:00
Markus Reiter
a7a8569d70
Merge pull request #7607 from reitermarkus/cask-help-usage
Implement `brew cask help <command>`.
2020-05-21 21:02:02 +02:00
Daniel Bayley
e477a38958 [WIP] cat: Allow 'bat' to find existing configuration file 2020-05-20 16:51:36 +01:00
Markus Reiter
7f400d8e4e Fix brew cask <command> --help. 2020-05-19 19:30:46 +02:00
Markus Reiter
6d9a20614a Implement brew cask help <command>. 2020-05-19 19:23:31 +02:00
Tharun
aeede8374f fixed review changes 2020-05-19 21:41:02 +05:30
Tharun
139ca1d374 Updated analytics method name for cask info 2020-05-17 00:31:12 +05:30
Mike McQuaid
fe6cca3540
cask/cmd/list: remove deprecated -l.
This crashes `brew style`.
2020-05-12 09:09:59 +01:00
Mike McQuaid
12bdb38663
rubocop: brew style --fix autocorrections. 2020-05-12 08:32:27 +01:00
Frank Lam
f2fa2c5d30
Add JSON support to brew cask outdated
* brew outdated already has JSON support, now users and tools can get
similar results with brew cask outdated --json
2020-04-26 21:13:19 +08:00
Markus Reiter
30c313b7b9 Refactor cask command parsing logic. 2020-04-11 01:29:44 +02:00
Mike McQuaid
c48352aa6c
cask/cmd/list: fix ambiguous params. 2020-03-13 21:16:18 +00:00
Mike McQuaid
ef34fbc634
cask/cmd/style: don't hide warnings.
These sometimes display useful RuboCop deprecations.
2019-12-01 14:19:26 +00:00
Markus Reiter
fbf4b0432d Rescue more errors during cask upgrade. 2019-11-22 02:50:44 +01:00
L. E. Segovia
a02ef65f68
cask: fix xattr error detection
Fixes Homebrew/homebrew-cask#71209
2019-10-23 01:49:09 +00:00
Issy Long
341ea60807
Auto-fix Style/RedundantBegin offenses
- This also required auto-fixes for Layout/EmptyLinesAroundBlockBody and
  Layout/InconsistentIndentation once the auto-fixer had got rid of the
  "redundant begin"s.
2019-10-13 16:04:27 +01:00
Markus Reiter
b6b9cd248c Refactor brew cask style. 2019-10-04 23:43:48 +02:00
Markus Reiter
e351e6b31c
Merge pull request #6482 from alecclarke/run-style-checks-on-test-casks
Include test casks in the cask style check.
2019-10-04 23:15:59 +02:00
L. E. Segovia
eccdc4c253
Cask: address @reitermarkus's comments 2019-10-03 20:21:32 +00:00
L. E. Segovia
caf7df5840
Cask: add doctor check for xattr
CC: Homebrew/homebrew-cask#69660
2019-10-01 11:17:27 +00:00
Alec Clarke
45806f6a97 Include test casks in the cask style check.
Currently the tests casks found in "/Homebrew/test/support/fixtures/cask/Casks" and "/Homebrew/test/support/fixtures/third-party/Casks" aren't included in the paths checked when running "brew cask style".

This change includes these test cask paths in the checked paths, and also includes the auto style fixes made by running `brew cask style --fix`.
2019-09-23 08:50:24 -04:00
Markus Reiter
fca5950748 Remove brew cask automerge. 2019-08-21 11:12:36 +02:00
Jeremy Mayeres
22f43e3670
Remove cask-eid tap from automerge
Since the homebrew-cask-eid tap is no longer in use, it should be removed from the command as well.
2019-08-11 16:23:17 +02:00
Mike McQuaid
41461b2c00
upgrade: tweak --dry-run wording. 2019-07-28 14:50:59 +01:00
Doug Hogan
7f6ef77d0e Address PR comments: remove test and use return ... if 2019-07-27 07:36:11 -07:00
Doug Hogan
55fcd01bed cask/cmd/upgrade: add --dry-run option. 2019-07-26 23:20:56 -07:00
Mike McQuaid
12a0c281ea
cask/cmd/info: fix brew style, refactor. 2019-07-16 21:10:21 +01:00
Markus Reiter
e2369fcde0 Output all upgradable casks before upgrading. 2019-05-31 19:16:04 +02:00
Mike McQuaid
781ad57ded
Merge pull request #6163 from xu-cheng/cask-cache
Add brew cask --cache <cask> command
2019-05-30 08:57:48 +01:00
Mike McQuaid
a89a3dfe91
Use whoami consistently in chown commands 2019-05-23 10:19:33 +02:00
Cheng XU
169ac2d413
cask: add new --cache command
It prints the file used to cache Casks.

This can be used to help users to install casks with their files
downloaded from outside brew.

See #6157.
2019-05-23 15:28:00 +08:00
Isabell (Issy) Long
7a367980b6
Add a blank line between brew cask info output for multiple casks
- `brew info` adds a blank line between info output for multiple
  formulae. This replicates that display for `brew cask info`, as
  requested in Issue 6126.
2019-05-13 19:45:08 +01:00
Julian Mayer
a061a8d9f7 add optional checking whether appcast contains the version stanza to "brew cask audit" 2019-05-07 17:06:54 +02:00
Mike McQuaid
c4f72312ce
Fixup brew style failures. 2019-04-30 09:19:18 +01:00
Mike McQuaid
0d54978ba8
Merge pull request #6036 from MikeMcQuaid/enable-frozen-string-literal
Use FrozenStringLiteralComment instead of flag.
2019-04-22 13:07:08 -07:00
Markus Reiter
ce15622584 Add *_to_slashes methods to compat. 2019-04-20 23:58:48 +02:00
Mike McQuaid
fc6bd2ea1c
Fixup more frozen string handling. 2019-04-20 14:07:29 +09:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files. 2019-04-20 13:27:36 +09:00
Mike McQuaid
d1ea6f38d3
Fix mutable constants violations. 2019-04-19 21:46:20 +09:00
Mike McQuaid
86f43f79ee
Enable/fix optional Ruby frozen string literal usage
Combined with https://github.com/Homebrew/homebrew-test-bot/pull/247
this will test Homebrew's use of frozen strings in CI. After this we
will then enable it for Homebrew developers and eventually all Homebrew
users.
2019-04-19 10:30:41 +09:00
Mike McQuaid
1281c4a663
Merge pull request #5983 from zachauten/continue-upgrading-casks-after-failure
'brew cask upgrade' will continue upgrading casks after a failure
2019-04-14 10:01:32 +01:00
Mike McQuaid
3b842ef41f
Merge pull request #6014 from vitorgalvao/caskroom-home
cask home: update to brew.sh
2019-04-14 10:00:15 +01:00
EricFromCanada
15c38a2d8b formatting fixes 2019-04-13 21:29:32 -04:00
EricFromCanada
fa6404e0f5 grammar fixes 2019-04-13 21:29:32 -04:00
Vítor Galvão
67ca3d372a cask home cmd: update homepage to brew.sh 2019-04-13 19:47:14 +01:00