Commit Graph
152 Commits
Author SHA1 Message Date
Seeker 8fc478fef1 cli: fix underlined multi-line help text 2020-12-18 20:54:34 -08:00
Mike McQuaid 74fb058c7e More deprecations
More deprecations, disabling and removal for Homebrew 2.7.0.
2020-12-18 14:17:37 +00:00
Markus Reiter f711352cfd Add audit for livecheck in casks. 2020-12-14 15:44:35 +01:00
EricFromCanada 9dec442e71 pr-pull: prepare replacement for --workflow flag 2020-12-11 16:50:03 -05:00
Markus Reiter 1c2a31e224 Allow passing individual casks to bump-unversioned-casks for debugging. 2020-12-08 01:03:39 +01:00
Bryce Glover c237223e15 [Library/Homebrew/cli/named_args.rb] to_formulae_to_casks(): Reassociate its
`rescue` block with the right enclosing scope.

     PR #9398 accidentally removed some semantically significant indentation in
this function, thus inadvertently kicking the `rescue` block inside out to func-
tion scope, when it moved its code further up in the file.  This may well not
confuse a Ruby interpreter, but it could trip human readers up.  Compensate and
correct the overlooked offending oversight and potential refactoring mistake by
restoring only that indentation, leaving the function in its new location.

Refs #9398.
2020-12-05 16:34:55 -05:00
Markus Reiter 9649ef975c Only install default cask tap automatically on macOS. 2020-12-05 03:39:01 +01:00
Markus Reiter e0aa934219 Ensure default cask tap is installed on CaskUnavailableError. 2020-12-05 03:25:58 +01:00
Rylan PolsterandGitHub 77b4275f81 Merge pull request #9326 from Rylan12/migrate-style-exceptions
Migrate style exceptions to homebrew/core
2020-12-01 12:19:45 -05:00
EricFromCanadaandMike McQuaid b7aae0c643 parser: allow a disabled switch to specify its replacement 2020-12-01 12:02:44 +00:00
Rylan Polster 8d5dc76284 Satisfy brew typecheck 2020-11-30 20:32:46 -05:00
Markus Reiter 47b8f96efb Require formula for named arguments. 2020-11-30 04:18:23 +01:00
Markus Reiter fddd589bc3 Make more requires in NamedArgs lazy. 2020-11-30 00:57:36 +01:00
Markus Reiter 7348185347 Reorder global. 2020-11-30 00:00:02 +01:00
Markus Reiter 4560c06b7e Add more method signatures for CLI::Args. 2020-11-29 22:37:24 +01:00
Markus Reiter 650ec514c1 Fix type errors in test. 2020-11-29 21:23:54 +01:00
Markus Reiter 1b9002c04a Fix type errors in postinstall. 2020-11-29 21:23:54 +01:00
Mike McQuaid d496f5c121 Deprecations for Homebrew 2.6.0
Do the usual deprecate/disable dance for the Homebrew 2.6.0 release.

Not to be merged until the next release will definitely be 2.6.0.
2020-11-24 16:44:02 +00:00
Markus Reiter 9140b21d80 Support --cask flag in brew info. 2020-11-20 10:36:15 +01:00
Markus ReiterandGitHub 7dd7d69cd8 Merge pull request #9207 from reitermarkus/brew-zap
Add `--zap` flag for `brew uninstall`.
2020-11-20 09:42:13 +01:00
Markus ReiterandGitHub bf486c5397 Merge pull request #9212 from reitermarkus/brew-cask-fetch
Support casks in `brew fetch`.
2020-11-20 09:32:13 +01:00
Markus Reiter 45950bb8ad Support casks in brew edit. 2020-11-20 00:43:15 +01:00
Markus Reiter 7a83f34dd1 Support casks in brew fetch. 2020-11-19 19:46:59 +01:00
Markus Reiter bc24128263 Support casks in brew cat. 2020-11-19 16:01:10 +01:00
Markus Reiter 2c47678b05 Add --zap flag to brew uninstall and remove brew zap. 2020-11-19 15:07:59 +01:00
Markus Reiter f4b4fdac98 Add brew zap command. 2020-11-19 13:42:02 +01:00
Jonathan Chang a094e43337 cli: fix type signature of to_kegs_to_casks 2020-11-19 21:00:56 +11:00
Markus Reiter 5097af3b74 Support --cask flag in brew uninstall. 2020-11-18 17:30:34 +01:00
Mike McQuaid caae165eb2 Improve brew install --quiet
- Suppress (some more) warnings when doing `brew install --quiet`
- Clarify `man brew` output that we don't suppress all warnings
  for all commands with `--quiet`

While I was doing this I noticed references to the (soon to be
deprecated) `brew switch` so:
- remove these references in `install` output
- remove a reference in the documentation
- add a comment to remind me to deprecate `brew diy`, too

Fixes #9179
2020-11-18 10:13:57 +00:00
Mike McQuaid f212bf20cb cli/named_args: don't convert to taps.
Fixes https://github.com/Homebrew/brew/issues/8966
2020-11-17 17:31:30 +00:00
Markus Reiter 0184e271d8 Fix RuboCop offenses. 2020-11-17 11:09:55 +01:00
Markus ReiterandGitHub 9f458142b7 Merge pull request #9146 from reitermarkus/upgrade
Mention `--greedy` when no casks were upgraded.
2020-11-16 22:03:10 +01:00
Markus Reiter 3ee66d8c0d Add type annotations related to upgrade. 2020-11-16 19:45:15 +01:00
EricFromCanada f784b7107f manpage: fixes for grammar 2020-11-16 07:56:50 -05:00
EricFromCanada eb16624c5f manpage: reformat lists of subcommands & env vars
Modify parser.rb to add a colon between each term and the line break, which `ronn` converts into a definition list.
The <br> that follows ensures each term description is on a new line in the manpage output, and also replaces the
double trailing space for generating the hard return that follows each term in the HTML output.
Also modify man.rb to print environment variables with list markup matching the cask commands, and then drop
trailing colons from both lists of terms (cask commands, env vars) and non-list terms (analytics, bundle, services;
a <br> is added here because it would prevent the term description from being indented in the manpage output).
https://docs.brew.sh/Manpage#cask-command-options-cask
2020-11-16 07:56:50 -05:00
Markus Reiter da9289eff0 Add more type signatures. 2020-11-13 12:26:36 +01:00
Jonathan Chang ab7b757400 rubocop: fix Style/NegatedIfElseCondition 2020-11-10 23:28:31 +11:00
EricFromCanada 3768b7a6e9 apidoc: update comment wording, punctuation, formatting 2020-11-06 00:21:02 -05:00
Mike McQuaid 438874af3c list: more parameters fixes.
- Remove incorrect `--formula` requirements.
- Fix bad `OptionConstraintError` output message.

Fixes #9037.
2020-11-03 16:50:03 +00:00
Mike McQuaid 5adb76a5ba list: fix flag handling.
Fix `-1` and other flags so they're handled correctly with casks. Use
the "right" exceptions for declaring invalid combinations and change
their parent class so that `--help` is printed nicely too.

Fixes #9033
2020-11-03 12:29:58 +00:00
Mike McQuaidandGitHub 60046ac41c Merge pull request #8893 from whoiswillma/william/integrate-brew-info
cmd/info: Add support for casks in brew info
2020-10-26 11:59:53 +00:00
William Ma a463348631 cli/named_args: Rename method to be more consistent 2020-10-12 09:22:29 -04:00
William Ma 4c36cf2e8e cmd/info: Add --json=v2 for outputing formula and cask json 2020-10-10 16:34:01 -04:00
Markus Reiter 61b79318ed Move include Kernel into .rbi files again and split up existing .rbi files. 2020-10-10 19:10:58 +02:00
Markus Reiter 24ae318a3d Move type annotations into files. 2020-10-10 14:59:39 +02:00
William Ma 9a8f4c7c96 cmd/info: Add support for casks 2020-10-09 19:57:48 -04:00
Markus Reiter e117a68f42 Force brew upgrade to treat arguments as casks if --cask is passed. 2020-10-08 13:43:15 +02:00
Markus Reiter d6b563e752 Support min_named :formula_or_cask. 2020-10-08 11:12:17 +02:00
Markus Reiter 7743fed77b Add “GLOBAL CASK OPTIONS” section to man page. 2020-10-08 11:07:35 +02:00
Markus Reiter 727d854621 Add missing variable. 2020-10-08 11:07:35 +02:00