Commit Graph
164 Commits
Author SHA1 Message Date
Markus Reiter 9922ad382f Ignore invalid keys when reading existing Cask::Config. 2021-01-13 08:30:50 +01:00
souleater7 e50e3e4b22 Delete references to devel 2021-01-01 10:16:31 -08:00
Rylan PolsterandGitHub c54acefab3 Merge pull request #10147 from Rylan12/rename-cask-args
cli/parser: use - instead of _ in cask args
2020-12-28 22:07:39 -05:00
Mike McQuaidandGitHub dc52ff620b Merge pull request #10031 from hyuraku/only_path_formula_or_cask
add function to define path
2020-12-28 13:22:22 +00:00
Rylan PolsterandMike McQuaid 224c7f44e2 cli/args: --HEAD implies building from source 2020-12-28 08:48:38 +00:00
Rylan Polster ab97c30b14 cli/parser: use - instead of _ in cask args 2020-12-25 12:42:18 -05:00
Issy LongandRylan Polster 531cae4b8c cli/parser: Option-ify arg names when raising OptionConstraintError
- There's already a method on `CLI::Parser`, we don't need to hand-roll
  the "number of dashes" detection.

Co-authored-by: Rylan Polster <rslpolster@gmail.com>
2020-12-24 16:52:39 +00:00
Issy Long 27afcf5779 cli/parser: Improve single or multi "-" detection
- This reads nicer (to me).
2020-12-24 15:54:24 +00:00
Issy Long 570a660758 cli/parser: Only prefix short options with one dash
- This avoids error messages like:

```
➜ brew list -l
Error: Invalid usage: `--l` cannot be passed without `--formula`.
```
2020-12-24 13:33:37 +00:00
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
hyuraku 0a97cd18a5 set default args 2020-12-17 21:14:18 +09:00
hyuraku 7be216fcbe change function name 2020-12-17 21:07:43 +09:00
hyuraku d7f9bb6247 add function to define path 2020-12-17 21:07:43 +09: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