277 Commits

Author SHA1 Message Date
cnnrmnn
dd2b3c9c43 Remove --shallow and --full from completions 2021-05-06 10:16:43 -04:00
Nanda H Krishna
2aff9ef1e6
Update manpages and completions 2021-05-04 18:33:22 +05:30
Gautham Goli
c1798a496a Fix shellcheck style errors on bash completion file 2021-05-02 14:58:39 +05:30
BrewTestBot
f385446353
Update maintainers, manpage and completions.
Autogenerated by the [update-manpage](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/update-manpage.yml) workflow.
2021-04-29 18:58:20 +00:00
BrewTestBot
8706dda241
Update maintainers, manpage and completions.
Autogenerated by the [update-manpage](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/update-manpage.yml) workflow.
2021-04-19 09:23:24 +00:00
BrewTestBot
73966f4cd5
Update maintainers, manpage and completions.
Autogenerated by the [update-manpage](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/update-manpage.yml) workflow.
2021-04-17 12:21:10 +00:00
Gautham Goli
7abfb11a0b Use shellcheck on Bash completion file 2021-04-11 19:02:25 +05:30
Mike McQuaid
0ec1f04e63
GitHub Packages CI upload fixes
- Add `--no-commit` option to `brew pr-pull` and pass to
  `brew pr-upload`
- Use `skopeo` from `PATH` if available (as it takes a while to build on
  CI)
2021-04-02 16:51:18 +01:00
BrewTestBot
1c5f446449
Update maintainers, manpage and completions.
Autogenerated by the [update-manpage](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/update-manpage.yml) workflow.
2021-04-01 17:14:57 +00:00
Mike McQuaid
d8a2cf9efc
Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
  and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier JSON to disk.
- Don't write `HEAD` to tab; this duplicates `HOMEBREW_VERSION`.
- Allow `brew bottle` to use `--json` to generate JSON files from a
  local bottle file.
2021-03-31 09:43:37 +01:00
Rylan Polster
2b8d19e0bd
audit: limit non-failure cask output 2021-03-22 22:16:54 -04:00
BrewTestBot
f6e5bb7ab6 Update maintainers, manpage and completions.
Autogenerated by the [update-manpage](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/update-manpage.yml) workflow.
2021-03-22 14:15:11 +00:00
BrewTestBot
0beb952530 Update maintainers, manpage and completions.
Autogenerated by the [update-manpage](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/update-manpage.yml) workflow.
2021-03-17 10:47:09 +00:00
Mike McQuaid
8e646f6202
pr-upload: support uploading to GitHub Packages.
Use `oras` to create a package tagged with the current version.
2021-03-12 14:09:25 +00:00
BrewTestBot
713a0692ae Update maintainers, manpage and completions.
Autogenerated by the [update-manpage](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/update-manpage.yml) workflow.
2021-03-04 15:13:05 +00:00
Mike McQuaid
dc1fdc9f8d
Speedup brew --version.
Port `brew --version` to Bash to speed it up.

While we're here:
- remove (now) unused `Tap` Git methods
- use `--quiet` instead of `-q` to be more verbose

Benchmarks:
```
$ hyperfine --min-runs=3 --warmup=2 "git checkout origin/master; brew --version" "git checkout speedup_brew_version; brew --version"
Benchmark #1: git checkout origin/master; brew --version
  Time (mean ± σ):      2.083 s ±  0.004 s    [User: 396.8 ms, System: 597.2 ms]
  Range (min … max):    2.080 s …  2.088 s    3 runs

Benchmark #2: git checkout speedup_brew_version; brew --version
  Time (mean ± σ):     847.9 ms ±  35.2 ms    [User: 100.0 ms, System: 247.9 ms]
  Range (min … max):   824.1 ms … 888.3 ms    3 runs

Summary
  'git checkout speedup_brew_version; brew --version' ran
    2.46 ± 0.10 times faster than 'git checkout origin/master; brew --version'
```
2021-03-04 12:59:42 +00:00
BrewTestBot
19d50de8ca Update maintainers, manpage and completions.
Autogenerated by the [update-manpage](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/update-manpage.yml) workflow.
2021-02-26 18:08:09 +00:00
Shaun Jackman
7fd6d2166b
Update man pages 2021-02-22 17:58:13 -08:00
Shaun Jackman
2794641a28
Update man pages 2021-02-22 17:24:05 -08:00
nandahkrishna
24bb6040a7
dev-cmd/bump: add cask support 2021-02-17 00:42:07 +05:30
nandahkrishna
7bb059b523
Update manpage and completions 2021-02-08 23:33:25 +05:30
Dawid Dziurla
a90fb27adb
untap: add missing --force switch 2021-02-04 18:36:32 +01:00
Mike McQuaid
cdf8ff9052
Merge pull request #10266 from gromgit/prefix_non_installed
cmd/--prefix: add --installed flag
2021-02-01 09:05:28 +00:00
Adrian Ho
28a8409b6e cmd/--prefix: add --installed flag
This changes the output for uninstalled formulae from Cellar prefix to empty string, so:
```sh
$ brew --prefix abcde python@3.9 tcl-tk
/usr/local/Cellar/abcde/2.9.3_1
/usr/local/opt/python@3.9
/usr/local/Cellar/tcl-tk/8.6.10
$ brew --prefix --installed abcde python@3.9 tcl-tk

/usr/local/opt/python@3.9

$
```
2021-01-31 16:09:43 +08:00
Mike McQuaid
d6957a3acb
Homebrew 3.0.0 deprecations/disables 2021-01-29 19:50:24 +00:00
Mike McQuaid
d0e1c3dc5f
Merge pull request #10400 from issyl0/improve-brew-extract-args
dev-cmd/extract: Improve the usage instructions
2021-01-25 09:55:01 +00:00
Rylan Polster
01e894e9c6
parser: create NumberOfNamedArgumentsError
And commit `brew man` changes
2021-01-23 15:26:21 -05:00
Issy Long
49b9b6cf3f
dev-cmd/extract: Improve the usage instructions
- A friend got an error message when trying to use `brew extract` and it
  wasn't immediately obvious to me why. The usage banner only mentioned
  the "formula" argument, which they'd provided. This improves the error
  message when there aren't enough arguments so that others have a
  chance of figuring out how to use this command without having to look
  at the code for `extract_args`.

Before:

```
➜ brew extract --version='1.4' libftdi
Usage: brew extract [--version=] [--force] formula ...
[...]
Error: Invalid usage: this command requires a formula argument
```

After:

```
➜ brew extract --version='1.4' libftdi
Usage: brew extract [options] formula tap
[...]
Error: Invalid usage: This command requires at least 2 named arguments.
```

- I don't like the "at least 2" phrasing here but that's a dive into the
  arg parsing code that I don't have time for right now. An alternative
  was `named_args [:formula, :destination_tap]`, but that gave the error
  message "requires formula or destination_tap" which wasn't great
  either. I also tried `min: 2, max: 2` and that was the same "at least
  2" message.
2021-01-23 20:01:11 +00:00
Rylan Polster
be02591cb6
Add brew release command 2021-01-21 18:29:43 -05:00
Rylan Polster
4ef8c8279f
completions: complete files where appropriate in bash 2021-01-19 01:03:05 -05:00
Rylan Polster
c8d32ff75a
Updates after rebase on latest master 2021-01-18 21:20:12 -05:00
Dustin Rodrigues
1b828f4b4a completions: remove link 2021-01-18 20:27:18 -05:00
Rylan Polster
a77fdca105
completions: complete multiple types 2021-01-17 20:22:00 -05:00
Rylan Polster
3af16832d9 Generate bash completions automatically 2021-01-15 00:03:28 -05:00
Mike McQuaid
30d5fc6285
Merge pull request #10259 from kidonng/cask-completion
Add brew casks command
2021-01-08 13:04:53 +00:00
souleater7
d57c7153e2 Delete outdated references to HEAD 2021-01-04 15:48:23 -08:00
souleater7
e50e3e4b22 Delete references to devel 2021-01-01 10:16:31 -08:00
Kid
98c968ea2f Add brew casks command 2020-12-30 10:55:26 +08:00
Rylan Polster
ab97c30b14 cli/parser: use - instead of _ in cask args 2020-12-25 12:42:18 -05:00
metacollin
b04a5ffa0b Turbocharged formula name completion 2020-11-13 05:36:53 -07:00
Amory Meltzer
11918cef96
bash completion: Add remaining brew outdated flags
`--verbose`, `--formula`, and `--greedy`
2020-10-19 15:54:15 -04:00
nandahkrishna
cf293d0ef5
livecheck: progress bar for JSON output
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
Co-authored-by: Dustin Rodrigues <dust.rod@gmail.com>
2020-09-18 02:40:51 +05:30
Amory Meltzer
ab81cb9cdd
bash completion: Avoid cask deprecation warnings, learn --cask
See #8709
2020-09-12 14:12:45 -04:00
nandahkrishna
e5fe57c1fe
Migrate livecheck to Homebrew/brew
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
Co-authored-by: Thierry Moisan <thierry.moisan@gmail.com>
Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
Co-authored-by: Maxim Belkin <maxim.belkin@gmail.com>
Co-authored-by: Issy Long <me@issyl0.co.uk>
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Co-authored-by: Seeker <meaningseeking@protonmail.com>
2020-08-31 17:08:28 +05:30
Mike McQuaid
3875f16782
Fix --formula and --cask flags.
These were all made `--formulae` and `--casks` for consistency but that
doesn't behave as expected because they have special behaviours in
`args`. Instead, use the singular form everywhere.
2020-08-07 09:53:30 +01:00
Mike McQuaid
fb0a6338b1
Remove more tap pinning code.
This was deprecated and removed a while ago.
2020-08-06 12:24:10 +01:00
Seeker
a3f1e09bce dev-cmd/create: add --node option 2020-07-17 20:46:00 -07:00
Dario Vladovic
519c339261
create: add --crystal option 2020-06-25 18:23:06 +02:00
EricFromCanada
01f78582fa Use commands cache in bash/fish completions 2020-06-23 00:20:56 -04:00
EricFromCanada
0dc177d649 completions/bash: complete names of commands 2020-04-27 18:32:12 -04:00