2179 Commits

Author SHA1 Message Date
EricFromCanada
a427de5bee capitalization fixes
"curl" is the binary, while "cURL" is the umbrella project.
2021-01-26 15:36:44 -05:00
EricFromCanada
2e982cd2a2 use odie when commands encounter errors 2021-01-26 15:36:43 -05:00
EricFromCanada
571179ff0e pass second argument to ohai when applicable 2021-01-26 15:36:43 -05:00
Nanda H Krishna
5f5930255e
Merge pull request #10417 from nandahkrishna/bump-tests
dev-cmd/bump: increase test coverage
2021-01-26 18:58:43 +05:30
Mike McQuaid
00fab0294b
Merge pull request #10403 from Rylan12/zsh-completions
Generate zsh completions automatically
2021-01-26 10:19:59 +00:00
Seeker
e5fca67e0a
Merge pull request #10406 from SeekingMeaning/bump-formula-improvements
bump-formula-pr: improvements
2021-01-25 16:30:49 -08:00
Rylan Polster
67e03a0675
Improve command descriptions
Co-Authored-By: Jonathan Chang <me@jonathanchang.org>
Co-Authored-By: Eric Knibbe <3324775+EricFromCanada@users.noreply.github.com>
2021-01-25 13:46:51 -05:00
Rylan Polster
7f23b55c5e
Cleanup command descriptions
Don't have a period within first full sentence of the description
2021-01-25 13:46:35 -05:00
nandahkrishna
9c914106ed
dev-cmd/bump: increase test coverage 2021-01-25 17:12:43 +05:30
Mike McQuaid
97d56d122e
Merge pull request #10285 from nandahkrishna/refactor-utils-bump
Refactor `brew bump`
2021-01-25 09:59:48 +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
Seeker
cded62333e bump-formula-pr: improvements 2021-01-24 11:23:43 -08:00
nandahkrishna
138f7de18f
Refactor brew bump: apply suggestions from code review
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
2021-01-24 19:10:47 +05:30
nandahkrishna
417b1d7a66
dev-cmd/bump: use Livecheck::SkipConditions 2021-01-24 19:10:47 +05:30
nandahkrishna
4fa01fc8b7
utils/repology: use project-by tool to retrieve Formula data 2021-01-24 19:10:47 +05:30
nandahkrishna
61ff1d7e74
dev-cmd/bump: fix skip message handling 2021-01-24 19:10:47 +05:30
nandahkrishna
e2ddf9894a
Refactor brew bump 2021-01-24 19:10:46 +05:30
Rylan Polster
2c83ea7339
Merge pull request #10370 from Rylan12/brew-release
Add brew release command
2021-01-23 15:35:53 -05:00
Rylan Polster
f295e36a22
extract: re-add named arg types 2021-01-23 15:10:14 -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
e13dc902df
Add tests and fix type signature 2021-01-23 02:06:12 -05:00
Seeker
8693ca4e4d software_spec: change BottleSpecification#checksums to return array 2021-01-21 22:52:26 -08:00
Rylan Polster
e1f73e407a
Add ReleaseNotes module 2021-01-21 18:30:16 -05:00
Rylan Polster
be02591cb6
Add brew release command 2021-01-21 18:29:43 -05:00
Mike McQuaid
8cb2cc4bcc
install-bundler-gem: allow on ARM.
Needed for CI:
https://github.com/Homebrew/homebrew-core/pull/69460/checks?check_run_id=1740727396#step:6:32
2021-01-21 10:02:57 +00:00
Mike McQuaid
7360880780
Merge pull request #10375 from MikeMcQuaid/dev-cmd-arm
dev-cmd: disable when broken on Apple Silicon.
2021-01-21 09:01:16 +00:00
Rylan Polster
e172f0704e
Merge pull request #10360 from Rylan12/bash-completions-files
completions: complete files where appropriate in bash
2021-01-20 09:19:25 -05:00
Mike McQuaid
3bc31d40bd
dev-cmd: disable when broken on Apple Silicon.
This is better than users getting a weird error.
2021-01-20 14:07:44 +00:00
Michka Popoff
1c027f940f
Merge pull request #10186 from iMichka/bottle-cellar
bottle: tag specific cellars
2021-01-19 17:05:36 +01:00
Seeker
50cd836427
Merge pull request #10351 from SeekingMeaning/sig-braces
rubocop: require braces for Sorbet `sig`
2021-01-19 03:50:20 -08:00
Michka Popoff
3eea1434cc bottle: tag specific cellars 2021-01-19 10:14:25 +01:00
Rylan Polster
4ef8c8279f
completions: complete files where appropriate in bash 2021-01-19 01:03:05 -05:00
Rylan Polster
d1f3e39b7b
Update commands to generate usage banner 2021-01-18 21:20:11 -05:00
Dawid Dziurla
1525350709
Merge pull request #10350 from issyl0/brew-man-remove-link-flag
dev-cmd/man: Completely remove `--link`
2021-01-19 01:54:01 +01:00
Seeker
fbafaff4fe rubocop: require braces for Sorbet sig 2021-01-18 16:52:45 -08:00
Rylan Polster
5286be91cb
Merge pull request #10229 from Rylan12/generate-completions
Generate bash completions automatically
2021-01-18 11:47:26 -05:00
Mike McQuaid
668073dfe3
Merge pull request #10280 from hyuraku/cmd/commands_add_only_bash_command_list
cmd/prof: raise error when cmd is bash file
2021-01-18 14:25:21 +00:00
Issy Long
a0f3545a86
dev-cmd/man: Completely remove --link
- This was deprecated in ec75fbcb65ac151f401ec3fb483a1a1acf63d5e4 in 2016!
2021-01-18 00:57:21 +01:00
Dawid Dziurla
ce2dd731f7
deb-cmd/irb: remove named_args :none
seems like this command takes named args somewhere
2021-01-15 13:15:48 +01:00
Dawid Dziurla
cf654da251
dev-cmd: indicate multiple named args in usage banner 2021-01-15 13:04:07 +01:00
Rylan Polster
3af16832d9 Generate bash completions automatically 2021-01-15 00:03:28 -05:00
Rylan Polster
84af07f152
Merge pull request #10288 from Rylan12/refactor-named-args
Add named_args DSL for commands
2021-01-14 21:43:54 -05:00
Mike McQuaid
591e9d6a52
dev-cmd/tap-new: fix output on newer versions of Git.
Otherwise this prints to `stderr` to ask for configuration of the branch
name:
https://github.com/Homebrew/brew/pull/10323/checks?check_run_id=1701105141#step:5:51
2021-01-14 10:47:44 +00:00
Rylan Polster
da811373d3 Add named_args DSL for commands 2021-01-13 17:09:42 -05:00
Seeker
14b4916dda utils/ast: move helper functions from FormulaAST to AST 2021-01-11 20:35:14 -08:00
Seeker
2e8fe069fa
Merge pull request #10282 from SeekingMeaning/bump-formula-cleanup
bump-formula-pr: cleanup
2021-01-11 16:20:34 -08:00
Seeker
850cc8af3e
Merge pull request #10279 from SeekingMeaning/formula-rewriter
utils/ast: add `FormulaAST` class
2021-01-11 16:19:50 -08:00
Seeker
b29c27b9a8
Merge pull request #10251 from SeekingMeaning/bump-pr-match
bump-*-pr: check existing PRs for exact file match
2021-01-11 08:40:47 -08:00
hyuraku
c56fff3928 cmd/prof: raise error when cmd is bash file 2021-01-11 21:01:45 +09:00
Seeker
8fdfbdfc0b bump-formula-pr: cleanup 2021-01-10 09:47:20 -08:00