language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | Homebrew | brew | 138f7de18ffaefc5586e04c501fa2fc3ea907558.json | Refactor `brew bump`: apply suggestions from code review
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com> | Library/Homebrew/livecheck/livecheck.rb | @@ -60,12 +60,9 @@ def livecheck_strategy_names
@livecheck_strategy_names.freeze
end
- # Identify taps other than homebrew/core and homebrew/cask in use
- # for current formulae and casks and load additional Strategy
- # files them.
- sig do
- params(formulae_and_casks_to_check: T::Enumer... | true |
Other | Homebrew | brew | 138f7de18ffaefc5586e04c501fa2fc3ea907558.json | Refactor `brew bump`: apply suggestions from code review
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com> | Library/Homebrew/utils/repology.rb | @@ -21,10 +21,8 @@ def query_api(last_package_in_response = "")
end
def single_package_query(name)
- url = %W[
- https://repology.org/tools/project-by?repo=homebrew&
- name_type=srcname&target_page=api_v1_project&name=#{name}
- ].join
+ url = "https://repology.org/tools/project-by?repo=homebr... | true |
Other | Homebrew | brew | 4fa01fc8b75d2d0530327e9c0f11aede26a150fa.json | utils/repology: use project-by tool to retrieve Formula data | Library/Homebrew/dev-cmd/bump.rb | @@ -62,7 +62,7 @@ def bump
repo["repo"] == "homebrew"
end
- next if homebrew_repo.blank? # TODO: check if/when this ever happens
+ next if homebrew_repo.blank?
formula = begin
Formula[homebrew_repo["srcname"]] | true |
Other | Homebrew | brew | 4fa01fc8b75d2d0530327e9c0f11aede26a150fa.json | utils/repology: use project-by tool to retrieve Formula data | Library/Homebrew/utils/repology.rb | @@ -21,16 +21,19 @@ def query_api(last_package_in_response = "")
end
def single_package_query(name)
- url = "https://repology.org/api/v1/project/#{name}"
-
- output, _errors, _status = curl_output(url.to_s)
- data = JSON.parse(output)
-
- homebrew = data.select do |repo|
- repo["repo"] == "home... | true |
Other | Homebrew | brew | 61ff1d7e74243b9cb72057a951e22f2428e9f2d3.json | dev-cmd/bump: fix skip message handling | Library/Homebrew/dev-cmd/bump.rb | @@ -82,9 +82,9 @@ def bump
end
def livecheck_result(formula)
- skip_result = Livecheck.skip_conditions(formula, json: true, full_name: false, quiet: false)
- if skip_result != false
- return "skipped#{" - #{skip_result[:messages].join(", ")}" if skip_result[:messages].present?}"
+ skip_result = Li... | false |
Other | Homebrew | brew | 180d8ca2b2aa860e84764469dabfef6c0109fd01.json | utils/curl: use specs when checking http content problems | Library/Homebrew/resource_auditor.rb | @@ -105,7 +105,7 @@ def audit_urls
# pull request.
next if url.match?(%r{^https://dl.bintray.com/homebrew/mirror/})
- if http_content_problem = curl_check_http_content(url)
+ if http_content_problem = curl_check_http_content(url, specs: specs)
problem http_content_... | true |
Other | Homebrew | brew | 180d8ca2b2aa860e84764469dabfef6c0109fd01.json | utils/curl: use specs when checking http content problems | Library/Homebrew/utils/curl.rb | @@ -151,7 +151,7 @@ def url_protected_by_incapsula?(details)
details[:headers].match?(/^Set-Cookie: incap_ses_/i)
end
- def curl_check_http_content(url, user_agents: [:default], check_content: false, strict: false)
+ def curl_check_http_content(url, specs: {}, user_agents: [:default], check_conten... | true |
Other | Homebrew | brew | b7b624c9bfb5c6a28776ffed8f1811fd82e5b022.json | parser: clarify errors for invalid number of args | Library/Homebrew/cli/parser.rb | @@ -599,21 +599,16 @@ def check_constraint_violations
end
def check_named_args(args)
+ types = Array(@named_args_type).map do |type|
+ next type if type.is_a? Symbol
+
+ :subcommand
+ end.compact.uniq
+
exception = if @min_named_args && args.size < @min_named_arg... | true |
Other | Homebrew | brew | b7b624c9bfb5c6a28776ffed8f1811fd82e5b022.json | parser: clarify errors for invalid number of args | Library/Homebrew/test/cli/parser_spec.rb | @@ -475,18 +475,58 @@
expect { parser_none.parse([]) }.not_to raise_error
end
+ it "displays the correct error message with no arg types and min" do
+ parser = described_class.new do
+ named_args min: 2
+ end
+ expect { parser.parse([]) }.to raise_error(
+ Homebrew::CLI::Mi... | true |
Other | Homebrew | brew | 49b9b6cf3fa5d01db46b0645696aca072dfa8665.json | 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 ... | Library/Homebrew/dev-cmd/extract.rb | @@ -83,6 +83,7 @@ module Homebrew
sig { returns(CLI::Parser) }
def extract_args
Homebrew::CLI::Parser.new do
+ usage_banner "`extract` [<--version>`=`] [<--force>] <formula> <tap>"
description <<~EOS
Look through repository history to find the most recent version of <formula> and
... | true |
Other | Homebrew | brew | 49b9b6cf3fa5d01db46b0645696aca072dfa8665.json | 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 ... | completions/bash/brew | @@ -898,7 +898,6 @@ _brew_extract() {
return
;;
esac
- __brew_complete_formulae
}
_brew_fetch() { | true |
Other | Homebrew | brew | 49b9b6cf3fa5d01db46b0645696aca072dfa8665.json | 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 ... | docs/Manpage.md | @@ -1019,7 +1019,7 @@ or open the Homebrew repository for editing if no formula is provided.
* `--cask`:
Treat all named arguments as casks.
-### `extract` [*`--version`*`=`] [*`--force`*] *`formula`* ...
+### `extract` [*`--version`*`=`] [*`--force`*] *`formula`* *`tap`*
Look through repository history to fin... | true |
Other | Homebrew | brew | 49b9b6cf3fa5d01db46b0645696aca072dfa8665.json | 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 ... | manpages/brew.1 | @@ -1417,7 +1417,7 @@ Treat all named arguments as formulae\.
\fB\-\-cask\fR
Treat all named arguments as casks\.
.
-.SS "\fBextract\fR [\fI\-\-version\fR\fB=\fR] [\fI\-\-force\fR] \fIformula\fR \.\.\."
+.SS "\fBextract\fR [\fI\-\-version\fR\fB=\fR] [\fI\-\-force\fR] \fIformula\fR \fItap\fR"
Look through repository... | true |
Other | Homebrew | brew | e13dc902df8fdabfde7f50c1a2a3d772e77d6c5e.json | Add tests and fix type signature | Library/Homebrew/dev-cmd/release-notes.rb | @@ -32,6 +32,9 @@ def release_notes_args
def release_notes
args = release_notes_args.parse
+ # TODO: (2.8) Deprecate this command now that the `brew release` command exists.
+ # odeprecated "`brew release-notes`"
+
previous_tag = args.named.first
if previous_tag.present?
@@ -56,7 +59,7 @@ de... | true |
Other | Homebrew | brew | e13dc902df8fdabfde7f50c1a2a3d772e77d6c5e.json | Add tests and fix type signature | Library/Homebrew/release_notes.rb | @@ -10,7 +10,7 @@ module ReleaseNotes
module_function
sig {
- params(start_ref: T.any(String, Version), end_ref: T.any(String, Version), markdown: T::Boolean)
+ params(start_ref: T.any(String, Version), end_ref: T.any(String, Version), markdown: T.nilable(T::Boolean))
.returns(String)
}
def g... | true |
Other | Homebrew | brew | e13dc902df8fdabfde7f50c1a2a3d772e77d6c5e.json | Add tests and fix type signature | Library/Homebrew/test/dev-cmd/release_spec.rb | @@ -0,0 +1,8 @@
+# typed: false
+# frozen_string_literal: true
+
+require "cmd/shared_examples/args_parse"
+
+describe "Homebrew.release_args" do
+ it_behaves_like "parseable arguments"
+end | true |
Other | Homebrew | brew | e13dc902df8fdabfde7f50c1a2a3d772e77d6c5e.json | Add tests and fix type signature | Library/Homebrew/test/release_notes_spec.rb | @@ -0,0 +1,33 @@
+# typed: false
+# frozen_string_literal: true
+
+require "release_notes"
+
+describe ReleaseNotes do
+ before do
+ HOMEBREW_REPOSITORY.cd do
+ system "git", "init"
+ system "git", "commit", "--allow-empty", "-m", "Initial commit"
+ system "git", "tag", "release-notes-testing"
+ ... | true |
Other | Homebrew | brew | a06bd4e45df2a98a05e6752d7a662807176b3a77.json | version/parser: add unit tests | Library/Homebrew/test/version/parser_spec.rb | @@ -0,0 +1,81 @@
+# typed: false
+# frozen_string_literal: true
+
+require "version/parser"
+
+describe Version::Parser do
+ specify "::new" do
+ expect { described_class.new }
+ .to raise_error("Version::Parser is declared as abstract; it cannot be instantiated")
+ end
+
+ describe Version::RegexParser do
+... | true |
Other | Homebrew | brew | a06bd4e45df2a98a05e6752d7a662807176b3a77.json | version/parser: add unit tests | Library/Homebrew/version/parser.rb | @@ -27,7 +27,7 @@ def initialize(regex, &block)
sig { override.params(spec: Pathname).returns(T.nilable(String)) }
def parse(spec)
- match = @regex.match(process_spec(spec))
+ match = @regex.match(self.class.process_spec(spec))
return if match.blank?
version = match.captures.first
... | true |
Other | Homebrew | brew | b4df0d5c10a2b3ca984ff054d5b2fdd95f182515.json | cmd/cleanup: add desc about all to --prune | Library/Homebrew/cmd/cleanup.rb | @@ -22,7 +22,8 @@ def cleanup_args
#{days} days old. This can be adjusted with `HOMEBREW_CLEANUP_MAX_AGE_DAYS`.
EOS
flag "--prune=",
- description: "Remove all cache files older than specified <days>."
+ description: "Remove all cache files older than specified <days>. "... | true |
Other | Homebrew | brew | b4df0d5c10a2b3ca984ff054d5b2fdd95f182515.json | cmd/cleanup: add desc about all to --prune | docs/Manpage.md | @@ -77,7 +77,7 @@ only do this for the given formulae and casks. Removes all downloads more than
120 days old. This can be adjusted with `HOMEBREW_CLEANUP_MAX_AGE_DAYS`.
* `--prune`:
- Remove all cache files older than specified *`days`*.
+ Remove all cache files older than specified *`days`*. If you want to remo... | true |
Other | Homebrew | brew | b4df0d5c10a2b3ca984ff054d5b2fdd95f182515.json | cmd/cleanup: add desc about all to --prune | manpages/brew.1 | @@ -68,7 +68,7 @@ Remove stale lock files and outdated downloads for all formulae and casks, and r
.
.TP
\fB\-\-prune\fR
-Remove all cache files older than specified \fIdays\fR\.
+Remove all cache files older than specified \fIdays\fR\. If you want to remove everything, use \fB\-\-prune=all\fR\.
.
.TP
\fB\-n\fR, ... | true |
Other | Homebrew | brew | e1f73e407ad5e5ac4dcb602625d930235ed49a53.json | Add ReleaseNotes module | Library/Homebrew/dev-cmd/release-notes.rb | @@ -2,6 +2,7 @@
# frozen_string_literal: true
require "cli/parser"
+require "release_notes"
module Homebrew
extend T::Sig
@@ -55,25 +56,9 @@ def release_notes
odie "Ref #{ref} does not exist!"
end
- output = Utils.popen_read(
- "git", "-C", HOMEBREW_REPOSITORY, "log", "--pretty=format:'%... | true |
Other | Homebrew | brew | e1f73e407ad5e5ac4dcb602625d930235ed49a53.json | Add ReleaseNotes module | Library/Homebrew/dev-cmd/release.rb | @@ -2,6 +2,7 @@
# frozen_string_literal: true
require "cli/parser"
+require "release_notes"
module Homebrew
extend T::Sig
@@ -59,31 +60,24 @@ def release
end
new_version = if args.major?
- Version.new [latest_version.major.to_i + 1, 0, 0].join(".")
+ Version.new "#{latest_version.major.t... | true |
Other | Homebrew | brew | e1f73e407ad5e5ac4dcb602625d930235ed49a53.json | Add ReleaseNotes module | Library/Homebrew/release_notes.rb | @@ -0,0 +1,35 @@
+# typed: true
+# frozen_string_literal: true
+
+# Helper functions for generating release notes.
+#
+# @api private
+module ReleaseNotes
+ extend T::Sig
+
+ module_function
+
+ sig {
+ params(start_ref: T.any(String, Version), end_ref: T.any(String, Version), markdown: T::Boolean)
+ .return... | true |
Other | Homebrew | brew | dad19391421041680c7d19cedf3569a734335a64.json | Fix HOMEBREW_BOOTSNAP setup
- rename to `homebrew_bootsnap.rb` to avoid conflicting with the
`bootsnap.rb` we need to `require`
- if the `require` fails: run bundler (until we vendor this gem) | Library/.rubocop.yml | @@ -370,7 +370,7 @@ Sorbet/FalseSigil:
- "/**/{Formula,Casks}/*.rb"
- "**/{Formula,Casks}/*.rb"
- "Homebrew/test/**/Casks/**/*.rb"
- - "Homebrew/bootsnap.rb"
+ - "Homebrew/homebrew_bootsnap.rb"
Sorbet/StrictSigil:
Enabled: true | true |
Other | Homebrew | brew | dad19391421041680c7d19cedf3569a734335a64.json | Fix HOMEBREW_BOOTSNAP setup
- rename to `homebrew_bootsnap.rb` to avoid conflicting with the
`bootsnap.rb` we need to `require`
- if the `require` fails: run bundler (until we vendor this gem) | Library/Homebrew/homebrew_bootsnap.rb | @@ -7,7 +7,21 @@
raise "Needs HOMEBREW_BOOTSNAP!" unless ENV["HOMEBREW_BOOTSNAP"]
require "rubygems"
-require "bootsnap"
+
+begin
+ require "bootsnap"
+rescue LoadError
+ raise if ENV["HOMEBREW_BOOTSNAP_RETRY"]
+
+ Dir.chdir(HOMEBREW_LIBRARY_PATH) do
+ system "bundle", "install", "--standalone"
+ end
+
+ EN... | true |
Other | Homebrew | brew | dad19391421041680c7d19cedf3569a734335a64.json | Fix HOMEBREW_BOOTSNAP setup
- rename to `homebrew_bootsnap.rb` to avoid conflicting with the
`bootsnap.rb` we need to `require`
- if the `require` fails: run bundler (until we vendor this gem) | Library/Homebrew/load_path.rb | @@ -10,7 +10,7 @@
require "vendor/bundle/bundler/setup"
if ENV["HOMEBREW_BOOTSNAP"]
- require "bootsnap"
+ require "homebrew_bootsnap"
else
$LOAD_PATH.select! { |d| Pathname(d).directory? }
$LOAD_PATH.uniq! | true |
Other | Homebrew | brew | ecfad29347d9e58b9499144cab0a539d9e863ce9.json | tap: write untapped setting only on manual untap | Library/Homebrew/cmd/untap.rb | @@ -43,7 +43,7 @@ def untap
end
end
- tap.uninstall
+ tap.uninstall manual: true
end
end
end | true |
Other | Homebrew | brew | ecfad29347d9e58b9499144cab0a539d9e863ce9.json | tap: write untapped setting only on manual untap | Library/Homebrew/tap.rb | @@ -363,7 +363,7 @@ def link_completions_and_manpages
end
# Uninstall this {Tap}.
- def uninstall
+ def uninstall(manual: false)
require "descriptions"
raise TapUnavailableError, name unless installed?
@@ -386,7 +386,7 @@ def uninstall
Commands.rebuild_commands_completion_list
clear_cach... | true |
Other | Homebrew | brew | 15761a283d4dca679f28ea1141f3da7a0b3247ef.json | cleanup: raise failures and handle later.
These are already handled and outputted as a group in `cmd/cleanup.rb`.
Fixes https://github.com/Homebrew/brew/issues/10379 | Library/Homebrew/cleanup.rb | @@ -249,7 +249,7 @@ def cleanup_cask(cask, ds_store: true)
end
def cleanup_keg(keg)
- cleanup_path(keg) { keg.uninstall }
+ cleanup_path(keg) { keg.uninstall(raise_failures: true) }
rescue Errno::EACCES => e
opoo e.message
unremovable_kegs << keg | true |
Other | Homebrew | brew | 15761a283d4dca679f28ea1141f3da7a0b3247ef.json | cleanup: raise failures and handle later.
These are already handled and outputted as a group in `cmd/cleanup.rb`.
Fixes https://github.com/Homebrew/brew/issues/10379 | Library/Homebrew/keg.rb | @@ -319,7 +319,7 @@ def remove_opt_record
opt_record.parent.rmdir_if_possible
end
- def uninstall
+ def uninstall(raise_failures: false)
CacheStoreDatabase.use(:linkage) do |db|
break unless db.created?
@@ -333,6 +333,8 @@ def uninstall
remove_old_aliases
remove_oldname_opt_record
... | true |
Other | Homebrew | brew | 683ae7ff53052d365dcbe4aba8d4d5bb7b6026b5.json | Add HOMEBREW_BOOTSNAP to optionally use Bootsnap
> Bootsnap is a library that plugs into Ruby, with optional support
> for ActiveSupport and YAML, to optimize and cache expensive
> computations.
https://github.com/Shopify/bootsnap
For our case that translates to "repeated calls to `brew` have
reductions in the time s... | .gitignore | @@ -85,6 +85,7 @@
# Ignore dependencies we don't wish to vendor
**/vendor/bundle/ruby/*/gems/ast-*/
+**/vendor/bundle/ruby/*/gems/bootsnap-*/
**/vendor/bundle/ruby/*/gems/bundler-*/
**/vendor/bundle/ruby/*/gems/byebug-*/
**/vendor/bundle/ruby/*/gems/coderay-*/
@@ -105,6 +106,7 @@
**/vendor/bundle/ruby/*/gems/mi... | true |
Other | Homebrew | brew | 683ae7ff53052d365dcbe4aba8d4d5bb7b6026b5.json | Add HOMEBREW_BOOTSNAP to optionally use Bootsnap
> Bootsnap is a library that plugs into Ruby, with optional support
> for ActiveSupport and YAML, to optimize and cache expensive
> computations.
https://github.com/Shopify/bootsnap
For our case that translates to "repeated calls to `brew` have
reductions in the time s... | Library/.rubocop.yml | @@ -370,6 +370,7 @@ Sorbet/FalseSigil:
- "/**/{Formula,Casks}/*.rb"
- "**/{Formula,Casks}/*.rb"
- "Homebrew/test/**/Casks/**/*.rb"
+ - "Homebrew/bootsnap.rb"
Sorbet/StrictSigil:
Enabled: true | true |
Other | Homebrew | brew | 683ae7ff53052d365dcbe4aba8d4d5bb7b6026b5.json | Add HOMEBREW_BOOTSNAP to optionally use Bootsnap
> Bootsnap is a library that plugs into Ruby, with optional support
> for ActiveSupport and YAML, to optimize and cache expensive
> computations.
https://github.com/Shopify/bootsnap
For our case that translates to "repeated calls to `brew` have
reductions in the time s... | Library/Homebrew/Gemfile | @@ -3,6 +3,7 @@
source "https://rubygems.org"
# installed gems (should all be require: false)
+gem "bootsnap", require: false if ENV["HOMEBREW_BOOTSNAP"]
gem "byebug", require: false
gem "codecov", require: false
gem "nokogiri", require: false | true |
Other | Homebrew | brew | 683ae7ff53052d365dcbe4aba8d4d5bb7b6026b5.json | Add HOMEBREW_BOOTSNAP to optionally use Bootsnap
> Bootsnap is a library that plugs into Ruby, with optional support
> for ActiveSupport and YAML, to optimize and cache expensive
> computations.
https://github.com/Shopify/bootsnap
For our case that translates to "repeated calls to `brew` have
reductions in the time s... | Library/Homebrew/bootsnap.rb | @@ -0,0 +1,20 @@
+# typed: ignore
+# frozen_string_literal: true
+
+# TODO: make this `typed: true` when HOMEBREW_BOOTSNAP is enabled by
+# default and/or we vendor bootsnap and the RBI file.
+
+raise "Needs HOMEBREW_BOOTSNAP!" unless ENV["HOMEBREW_BOOTSNAP"]
+
+require "rubygems"
+require "bootsnap"
+
+Bootsnap.setup(... | true |
Other | Homebrew | brew | 683ae7ff53052d365dcbe4aba8d4d5bb7b6026b5.json | Add HOMEBREW_BOOTSNAP to optionally use Bootsnap
> Bootsnap is a library that plugs into Ruby, with optional support
> for ActiveSupport and YAML, to optimize and cache expensive
> computations.
https://github.com/Shopify/bootsnap
For our case that translates to "repeated calls to `brew` have
reductions in the time s... | Library/Homebrew/global.rb | @@ -1,6 +1,8 @@
# typed: false
# frozen_string_literal: true
+require_relative "load_path"
+
require "English"
require "json"
require "json/add/exception"
@@ -14,8 +16,6 @@
RUBY_PATH = Pathname.new(RbConfig.ruby).freeze
RUBY_BIN = RUBY_PATH.dirname.freeze
-require_relative "load_path"
-
require "rubygems"
... | true |
Other | Homebrew | brew | 683ae7ff53052d365dcbe4aba8d4d5bb7b6026b5.json | Add HOMEBREW_BOOTSNAP to optionally use Bootsnap
> Bootsnap is a library that plugs into Ruby, with optional support
> for ActiveSupport and YAML, to optimize and cache expensive
> computations.
https://github.com/Shopify/bootsnap
For our case that translates to "repeated calls to `brew` have
reductions in the time s... | Library/Homebrew/load_path.rb | @@ -9,5 +9,9 @@
require "vendor/bundle/bundler/setup"
-$LOAD_PATH.select! { |d| Pathname(d).directory? }
-$LOAD_PATH.uniq!
+if ENV["HOMEBREW_BOOTSNAP"]
+ require "bootsnap"
+else
+ $LOAD_PATH.select! { |d| Pathname(d).directory? }
+ $LOAD_PATH.uniq!
+end | true |
Other | Homebrew | brew | 7ba88097223a819292f1d5b7e0fcf16f6ad57a21.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -7673,11 +7673,6 @@ class Hash
def self.try_convert(_); end
end
-class HeadVersion
- extend ::T::Private::Methods::MethodHooks
- extend ::T::Private::Methods::SingletonMethodHooks
-end
-
module Homebrew
MAX_PORT = ::T.let(nil, ::T.untyped)
MIN_PORT = ::T.let(nil, ::T.untyped)
@@ -29737,6 +29732,13 @@ ... | false |
Other | Homebrew | brew | 47db90603fb1f926e574f9d07c492a5956abdee0.json | Update RBI files for concurrent-ruby. | Library/Homebrew/sorbet/rbi/gems/concurrent-ruby@1.1.8.rbi | @@ -1,6 +1,6 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `concurrent-ruby` gem.
-# Please instead update this file by running `tapioca sync --exclude json`.
+# Please instead update this file by running `tapioca sync`.
# typed: true
@@ -477,7 +477,7 @@ module Concurrent:... | true |
Other | Homebrew | brew | 47db90603fb1f926e574f9d07c492a5956abdee0.json | Update RBI files for concurrent-ruby. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -7673,11 +7673,6 @@ class Hash
def self.try_convert(_); end
end
-class HeadVersion
- extend ::T::Private::Methods::MethodHooks
- extend ::T::Private::Methods::SingletonMethodHooks
-end
-
module Homebrew
MAX_PORT = ::T.let(nil, ::T.untyped)
MIN_PORT = ::T.let(nil, ::T.untyped)
@@ -29737,6 +29732,13 @@ ... | true |
Other | Homebrew | brew | a04b4890a9185088af9d1664ba044d91e05697c7.json | Remove unneeded `export`
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> | docs/Shell-Completion.md | @@ -47,7 +47,7 @@ This must be done before `compinit` is called. Note that if you are using Oh My
```diff
eval $(/opt/homebrew/bin/brew shellenv)
-+ export FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
++ FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
```
You may also need to forcibly rebuild... | false |
Other | Homebrew | brew | 1e4fef812347453c27e38955cb1d9c6da90c58b4.json | usage string generator: fix handling of dashed-commands | Library/Homebrew/cli/parser.rb | @@ -122,7 +122,7 @@ def initialize(&block)
@args = Homebrew::CLI::Args.new
- @command_name = caller_locations(2, 1).first.label.chomp("_args")
+ @command_name = caller_locations(2, 1).first.label.chomp("_args").tr("_", "-")
@constraints = []
@conflicts = []
@@ -449,12 +449... | true |
Other | Homebrew | brew | 1e4fef812347453c27e38955cb1d9c6da90c58b4.json | usage string generator: fix handling of dashed-commands | docs/Manpage.md | @@ -711,7 +711,7 @@ that directory doesn't exist, `$(brew --repository)/Cellar`.
If *`formula`* is provided, display the location in the Cellar where *`formula`*
would be installed, without any sort of versioned directory as the last path.
-### `--env` [*`--shell`*`=`] [*`--plain`*] [*`formula`* ...]
+### `--env`, ... | true |
Other | Homebrew | brew | 1e4fef812347453c27e38955cb1d9c6da90c58b4.json | usage string generator: fix handling of dashed-commands | manpages/brew.1 | @@ -964,7 +964,7 @@ Display Homebrew\'s Cellar path\. \fIDefault:\fR \fB$(brew \-\-prefix)/Cellar\fR
.P
If \fIformula\fR is provided, display the location in the Cellar where \fIformula\fR would be installed, without any sort of versioned directory as the last path\.
.
-.SS "\fB\-\-env\fR [\fI\-\-shell\fR\fB=\fR] [\... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/.rubocop.yml | @@ -51,3 +51,7 @@ Naming/PredicateName:
Style/HashAsLastArrayItem:
Exclude:
- 'test/utils/spdx_spec.rb'
+
+Style/BlockDelimiters:
+ BracesRequiredMethods:
+ - 'sig' | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/bintray.rb | @@ -43,15 +43,15 @@ def open_api(url, *args, auth: true)
curl(*args, url, print_stdout: false, secrets: key)
end
- sig do
+ sig {
params(local_file: String,
repo: String,
package: String,
version: String,
remote_file: String,
... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/cask/artifact/relocated.rb | @@ -41,10 +41,10 @@ def resolve_target(target, base_dir: config.public_send(self.class.dirmethod))
attr_reader :source, :target
- sig do
+ sig {
params(cask: Cask, source: T.nilable(T.any(String, Pathname)), target: T.nilable(T.any(String, Pathname)))
.void
- end
+ }
... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/cask/cmd/upgrade.rb | @@ -57,7 +57,7 @@ def run
)
end
- sig do
+ sig {
params(
casks: Cask,
args: Homebrew::CLI::Args,
@@ -70,7 +70,7 @@ def run
quarantine: T.nilable(T::Boolean),
require_sha: T.nilable(T::Boolean),
).returns(... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/cask/config.rb | @@ -72,10 +72,10 @@ def self.from_json(json, ignore_invalid_keys: false)
)
end
- sig do
+ sig {
params(config: T::Enumerable[[T.any(String, Symbol), T.any(String, Pathname, T::Array[String])]])
.returns(T::Hash[Symbol, T.any(String, Pathname, T::Array[String])])
- end
+ }
... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/cask/url.rb | @@ -16,7 +16,7 @@ class URL
extend Forwardable
def_delegators :uri, :path, :scheme, :to_s
- sig do
+ sig {
params(
uri: T.any(URI::Generic, String),
verified: T.nilable(String),
@@ -34,7 +34,7 @@ class URL
from_block: T::Boolean,
caller_location: Thread... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/cli/named_args.rb | @@ -42,10 +42,10 @@ def to_formulae
# Convert named arguments to {Formula} or {Cask} objects.
# If both a formula and cask with the same name exist, returns
# the formula and prints a warning unless `only` is specified.
- sig do
+ sig {
params(only: T.nilable(Symbol), ignore_unav... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/cli/parser.rb | @@ -355,14 +355,14 @@ def formula_options
@formula_options = true
end
- sig do
+ sig {
params(
type: T.any(Symbol, T::Array[String], T::Array[Symbol]),
number: T.nilable(Integer),
min: T.nilable(Integer),
max: T.nilable(Integer),
... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/dev-cmd/bump-unversioned-casks.rb | @@ -84,10 +84,10 @@ def self.bump_unversioned_casks
end
end
- sig do
+ sig {
params(cask: Cask::Cask, state: T::Hash[String, T.untyped], dry_run: T.nilable(T::Boolean))
.returns(T.nilable(T::Hash[String, T.untyped]))
- end
+ }
def self.bump_unversioned_cask(cask, state:, dry_run:)
ohai... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/extend/ENV.rb | @@ -31,15 +31,15 @@ def activate_extensions!(env: nil)
end
end
- sig do
+ sig {
params(
env: T.nilable(String),
cc: T.nilable(String),
build_bottle: T.nilable(T::Boolean),
bottle_arch: T.nilable(String),
_block: T.proc.returns(T.untyped),
... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/extend/ENV.rbi | @@ -24,10 +24,10 @@ module EnvMethods
sig { params(key: String).returns(T.nilable(String)) }
def delete(key); end
- sig do
+ sig {
params(other: T.any(T::Hash[String, String], Sorbet::Private::Static::ENVClass))
.returns(Sorbet::Private::Static::ENVClass)
- end
+ }
def replace(other); end
... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/extend/ENV/shared.rb | @@ -33,14 +33,14 @@ module SharedEnvExtension
].freeze
private_constant :SANITIZED_VARS
- sig do
+ sig {
params(
formula: T.nilable(Formula),
cc: T.nilable(String),
build_bottle: T.nilable(T::Boolean),
bottle_arch: T.nilable(T::Boolean),
).void
- end
+ }... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/extend/ENV/std.rb | @@ -14,14 +14,14 @@ module Stdenv
SAFE_CFLAGS_FLAGS = "-w -pipe"
# @private
- sig do
+ sig {
params(
formula: T.nilable(Formula),
cc: T.nilable(String),
build_bottle: T.nilable(T::Boolean),
bottle_arch: T.nilable(T::Boolean),
).void
- end
+ }
def setu... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/extend/ENV/super.rb | @@ -42,14 +42,14 @@ def reset
end
# @private
- sig do
+ sig {
params(
formula: T.nilable(Formula),
cc: T.nilable(String),
build_bottle: T.nilable(T::Boolean),
bottle_arch: T.nilable(T::Boolean),
).void
- end
+ }
def setup_build_environment(formula: ni... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/extend/pathname.rb | @@ -85,12 +85,12 @@ class Pathname
BOTTLE_EXTNAME_RX = /(\.[a-z0-9_]+\.bottle\.(\d+\.)?tar\.gz)$/.freeze
# Moves a file from the original location to the {Pathname}'s.
- sig do
+ sig {
params(sources: T.any(
Resource, Resource::Partial, String, Pathname,
T::Array[T.any(String, Pathname)], T... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/livecheck/livecheck.rb | @@ -62,7 +62,7 @@ def livecheck_strategy_names
# Executes the livecheck logic for each formula/cask in the
# `formulae_and_casks_to_check` array and prints the results.
- sig do
+ sig {
params(
formulae_and_casks_to_check: T::Enumerable[T.any(Formula, Cask::Cask)],
full_name: ... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/livecheck/skip_conditions.rb | @@ -14,14 +14,14 @@ module SkipConditions
module_function
- sig do
+ sig {
params(
formula_or_cask: T.any(Formula, Cask::Cask),
livecheckable: T::Boolean,
full_name: T::Boolean,
verbose: T::Boolean,
).returns(Hash)
- ... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/livecheck/strategy/page_match.rb | @@ -77,14 +77,14 @@ def self.page_matches(content, regex, &block)
# @param provided_content [String] page content to use in place of
# fetching via Strategy#page_content
# @return [Hash]
- sig do
+ sig {
params(
url: String,
re... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/system_command.rb | @@ -64,7 +64,7 @@ def run!
result
end
- sig do
+ sig {
params(
executable: T.any(String, Pathname),
args: T::Array[T.any(String, Integer, Float, URI::Generic)],
@@ -79,7 +79,7 @@ def run!
secrets: T.any(String, T::Array[String]),
chdir: T.any(String, Pa... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/unpack_strategy/zip.rb | @@ -22,10 +22,10 @@ def self.can_extract?(path)
private
- sig do
+ sig {
override.params(unpack_dir: Pathname, basename: Pathname, verbose: T::Boolean)
.returns(SystemCommand::Result)
- end
+ }
def extract_to_dir(unpack_dir, basename:, verbose:)
quiet_flags = verbo... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/utils/ast.rb | @@ -49,14 +49,14 @@ def process_source(source)
[processed_source, root_node]
end
- sig do
+ sig {
params(
component_name: Symbol,
component_type: Symbol,
target_name: Symbol,
target_type: T.nilable(Symbol),
).returns(T::Boolean)
- end
+ }... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/utils/git_repository.rb | @@ -4,27 +4,27 @@
module Utils
extend T::Sig
- sig do
+ sig {
params(
repo: T.any(String, Pathname),
length: T.nilable(Integer),
safe: T::Boolean,
).returns(T.nilable(String))
- end
+ }
def self.git_head(repo = Pathname.pwd, length: nil, safe: true)
return git_short_... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/utils/github/actions.rb | @@ -31,12 +31,12 @@ def self.path_relative_to_workspace(path)
path.realpath.relative_path_from(workspace)
end
- sig do
+ sig {
params(
type: Symbol, message: String,
file: T.nilable(T.any(String, Pathname)), line: T.nilable(Integer), column: T.nilable(Integer)
... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/utils/inreplace.rb | @@ -40,14 +40,14 @@ def initialize(errors)
#
# @see StringInreplaceExtension
# @api public
- sig do
+ sig {
params(
paths: T.any(T::Array[T.untyped], String, Pathname),
before: T.nilable(T.any(Regexp, String)),
after: T.nilable(T.any(String, Sym... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/utils/pypi.rb | @@ -119,7 +119,7 @@ def update_pypi_url(url, version)
end
# Return true if resources were checked (even if no change).
- sig do
+ sig {
params(
formula: Formula,
version: T.nilable(String),
@@ -130,7 +130,7 @@ def update_pypi_url(url, version)
silent... | true |
Other | Homebrew | brew | fbafaff4fe46dd58bb2225331df512f79b857b2a.json | rubocop: require braces for Sorbet `sig` | Library/Homebrew/utils/string_inreplace_extension.rb | @@ -28,10 +28,10 @@ def sub!(before, after)
# Same as `String#gsub!`, but warns if nothing was replaced.
#
# @api public
- sig do
+ sig {
params(before: T.any(Regexp, String), after: T.nilable(String), audit_result: T::Boolean)
.returns(T.nilable(String))
- end
+ }
def gsub!(before, after, a... | true |
Other | Homebrew | brew | a257d046efbedc2fe79a637106406671898ed87d.json | remove spurious call to $fish_pid | Library/Homebrew/cmd/shellenv.sh | @@ -6,7 +6,7 @@
#: Consider adding evaluation of this command's output to your dotfiles (e.g. `~/.profile`, `~/.bash_profile`, or `~/.zprofile`) with: `eval $(brew shellenv)`
homebrew-shellenv() {
- case "$(/bin/ps -p ${PPID:-$fish_pid} -c -o comm=)" in
+ case "$(/bin/ps -p $PPID -c -o comm=)" in
fish|-fish... | false |
Other | Homebrew | brew | 5a9795016df3653a6f2eccbfb762cc8d17386cbd.json | completions: add tests for new methods | Library/Homebrew/completions.rb | @@ -97,7 +97,7 @@ def update_shell_completions!
sig { params(command: String).returns(T::Boolean) }
def command_gets_completions?(command)
- return false if command.start_with? "cask " # TODO: remove when `brew cask` commands are removed
+ return false if command.start_with? "cask " # TODO: (2.8) ... | true |
Other | Homebrew | brew | 5a9795016df3653a6f2eccbfb762cc8d17386cbd.json | completions: add tests for new methods | Library/Homebrew/test/completions_spec.rb | @@ -4,137 +4,241 @@
require "completions"
describe Homebrew::Completions do
+ let(:completions_dir) { HOMEBREW_REPOSITORY/"completions" }
let(:internal_path) { HOMEBREW_REPOSITORY/"Library/Taps/homebrew/homebrew-bar" }
let(:external_path) { HOMEBREW_REPOSITORY/"Library/Taps/foo/homebrew-bar" }
before do... | true |
Other | Homebrew | brew | 94a33b1d2ed98335e7e8ff4182f1c5f1b0821e6e.json | livecheck: compare actual version for casks | Library/Homebrew/livecheck/livecheck.rb | @@ -149,6 +149,9 @@ def run_checks(
Version.new(formula_or_cask.version)
end
+ current_str = current.to_s
+ current = actual_version(formula_or_cask, current)
+
latest = if formula&.head_only?
formula.head.downloader.fetch_last_commit
else
@@ -172,6 +175,... | false |
Other | Homebrew | brew | 9bf409111c29af56667cd86a390f46e0b5561c7d.json | git_repository: raise error instead of returning nil if `safe` | Library/Homebrew/extend/git_repository.rb | @@ -34,20 +34,14 @@ def git_origin=(origin)
# Gets the full commit hash of the HEAD commit.
sig { params(safe: T::Boolean).returns(T.nilable(String)) }
def git_head(safe: false)
- return if !git? || !Utils::Git.available?
-
- Utils.popen_read(Utils::Git.git, "rev-parse", "--verify", "-q", "HEAD", safe: s... | true |
Other | Homebrew | brew | 9bf409111c29af56667cd86a390f46e0b5561c7d.json | git_repository: raise error instead of returning nil if `safe` | Library/Homebrew/test/utils/git_repository_spec.rb | @@ -17,24 +17,82 @@
let(:short_head_revision) { HOMEBREW_CACHE.cd { `git rev-parse --short HEAD`.chomp } }
describe ".git_head" do
- it "returns the revision at HEAD" do
+ it "returns the revision at HEAD if repo parameter is specified" do
expect(described_class.git_head(HOMEBREW_CACHE)).to eq(head... | true |
Other | Homebrew | brew | 9bf409111c29af56667cd86a390f46e0b5561c7d.json | git_repository: raise error instead of returning nil if `safe` | Library/Homebrew/utils/git_repository.rb | @@ -5,7 +5,11 @@ module Utils
extend T::Sig
sig do
- params(repo: T.any(String, Pathname), length: T.nilable(Integer), safe: T::Boolean).returns(T.nilable(String))
+ params(
+ repo: T.any(String, Pathname),
+ length: T.nilable(Integer),
+ safe: T::Boolean,
+ ).returns(T.nilable(Strin... | true |
Other | Homebrew | brew | 6d3d88d33e4c0ee16b1e955f05adf889f221f8dc.json | Apply suggestions from code review
Co-authored-by: Eric Knibbe <enk3@outlook.com> | docs/External-Commands.md | @@ -70,7 +70,7 @@ Install any `gem` package into a self-contained Homebrew Cellar location: <https
Note this can also be installed with `brew install brew-gem`.
## External commands in taps
-External commands can be hosted in a [tap](Taps.md) to allow users to easy install and use the command. See [How to Create an... | false |
Other | Homebrew | brew | cf654da251fff2d6487abaf6d4736161544a6772.json | dev-cmd: indicate multiple named args in usage banner | Library/Homebrew/dev-cmd/bottle.rb | @@ -50,7 +50,7 @@ module Homebrew
def bottle_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `bottle` [<options>] <formula>
+ `bottle` [<options>] <formula> [<formula> ...]
Generate a bottle (binary package) from a formula that was installed with
`--build-bottle`... | true |
Other | Homebrew | brew | cf654da251fff2d6487abaf6d4736161544a6772.json | dev-cmd: indicate multiple named args in usage banner | Library/Homebrew/dev-cmd/bump-unversioned-casks.rb | @@ -18,7 +18,7 @@ module Homebrew
def self.bump_unversioned_casks_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `bump-unversioned-casks` [<options>] [<cask>|<tap>]
+ `bump-unversioned-casks` [<options>] <cask>|<tap> [<cask>|<tap> ...]
Check all casks with unversioned UR... | true |
Other | Homebrew | brew | cf654da251fff2d6487abaf6d4736161544a6772.json | dev-cmd: indicate multiple named args in usage banner | Library/Homebrew/dev-cmd/bump.rb | @@ -12,7 +12,7 @@ module Homebrew
def bump_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `bump` [<options>] [<formula>]
+ `bump` [<options>] [<formula>] [<formula> ...]
Display out-of-date brew formulae and the latest version available.
Also displays whether a ... | true |
Other | Homebrew | brew | cf654da251fff2d6487abaf6d4736161544a6772.json | dev-cmd: indicate multiple named args in usage banner | Library/Homebrew/dev-cmd/command.rb | @@ -13,7 +13,7 @@ module Homebrew
def command_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `command` <cmd>
+ `command` <cmd> [<cmd> ...]
Display the path to the file being used when invoking `brew` <cmd>.
EOS | true |
Other | Homebrew | brew | cf654da251fff2d6487abaf6d4736161544a6772.json | dev-cmd: indicate multiple named args in usage banner | Library/Homebrew/dev-cmd/edit.rb | @@ -13,7 +13,7 @@ module Homebrew
def edit_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `edit` [<formula>|<cask>]
+ `edit` [<formula>|<cask>] [<formula>|<cask> ...]
Open a <formula> or <cask> in the editor set by `EDITOR` or `HOMEBREW_EDITOR`,
or open the Home... | true |
Other | Homebrew | brew | cf654da251fff2d6487abaf6d4736161544a6772.json | dev-cmd: indicate multiple named args in usage banner | Library/Homebrew/dev-cmd/formula.rb | @@ -13,7 +13,7 @@ module Homebrew
def formula_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `formula` <formula>
+ `formula` <formula> [<formula> ...]
Display the path where <formula> is located.
EOS | true |
Other | Homebrew | brew | cf654da251fff2d6487abaf6d4736161544a6772.json | dev-cmd: indicate multiple named args in usage banner | Library/Homebrew/dev-cmd/irb.rb | @@ -34,6 +34,8 @@ def irb_args
switch "--pry",
env: :pry,
description: "Use Pry instead of IRB. Implied if `HOMEBREW_PRY` is set."
+
+ named_args :none
end
end
| true |
Other | Homebrew | brew | cf654da251fff2d6487abaf6d4736161544a6772.json | dev-cmd: indicate multiple named args in usage banner | Library/Homebrew/dev-cmd/linkage.rb | @@ -14,7 +14,7 @@ module Homebrew
def linkage_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `linkage` [<options>] [<formula>]
+ `linkage` [<options>] [<formula>] [<formula> ...]
Check the library links from the given <formula> kegs. If no <formula> are
provided... | true |
Other | Homebrew | brew | cf654da251fff2d6487abaf6d4736161544a6772.json | dev-cmd: indicate multiple named args in usage banner | Library/Homebrew/dev-cmd/livecheck.rb | @@ -20,7 +20,7 @@ module Homebrew
def livecheck_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `livecheck` [<formulae>|<casks>]
+ `livecheck` [<formula>|<cask>] [<formula>|<cask> ...]
Check for newer versions of formulae and/or casks from upstream.
| true |
Other | Homebrew | brew | cf654da251fff2d6487abaf6d4736161544a6772.json | dev-cmd: indicate multiple named args in usage banner | Library/Homebrew/dev-cmd/mirror.rb | @@ -13,7 +13,7 @@ module Homebrew
def mirror_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `mirror` <formula>
+ `mirror` <formula> [<formula> ...]
Reupload the stable URL of a formula to Bintray for use as a mirror.
EOS | true |
Other | Homebrew | brew | cf654da251fff2d6487abaf6d4736161544a6772.json | dev-cmd: indicate multiple named args in usage banner | Library/Homebrew/dev-cmd/pr-publish.rb | @@ -29,7 +29,7 @@ def pr_publish_args
flag "--workflow=",
description: "Target workflow filename (default: `publish-commit-bottles.yml`)."
- named_args number: 1
+ named_args min: 1
end
end
| true |
Other | Homebrew | brew | cf654da251fff2d6487abaf6d4736161544a6772.json | dev-cmd: indicate multiple named args in usage banner | Library/Homebrew/dev-cmd/pr-pull.rb | @@ -71,7 +71,7 @@ def pr_pull_args
conflicts "--clean", "--autosquash"
- named_args number: 1
+ named_args min: 1
end
end
| true |
Other | Homebrew | brew | cf654da251fff2d6487abaf6d4736161544a6772.json | dev-cmd: indicate multiple named args in usage banner | Library/Homebrew/dev-cmd/style.rb | @@ -15,7 +15,7 @@ module Homebrew
def style_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `style` [<options>] [<file>|<tap>|<formula>]
+ `style` [<options>] [<file>|<tap>|<formula>|<cask>] [<file>|<tap>|<formula>|<cask> ...]
Check formulae or files for conformance to Ho... | true |
Other | Homebrew | brew | cf654da251fff2d6487abaf6d4736161544a6772.json | dev-cmd: indicate multiple named args in usage banner | Library/Homebrew/dev-cmd/test.rb | @@ -15,7 +15,7 @@ module Homebrew
def test_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `test` [<options>] <formula>
+ `test` [<options>] <formula> [<formula> ...]
Run the test method provided by an installed formula.
There is no standard output or return code... | true |
Other | Homebrew | brew | cf654da251fff2d6487abaf6d4736161544a6772.json | dev-cmd: indicate multiple named args in usage banner | Library/Homebrew/dev-cmd/unbottled.rb | @@ -13,7 +13,7 @@ module Homebrew
def unbottled_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `unbottled` [<formula>]
+ `unbottled` [<formula>] [<formula> ...]
Outputs the unbottled dependents of formulae.
EOS | true |
Other | Homebrew | brew | cf654da251fff2d6487abaf6d4736161544a6772.json | dev-cmd: indicate multiple named args in usage banner | Library/Homebrew/dev-cmd/unpack.rb | @@ -14,7 +14,7 @@ module Homebrew
def unpack_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `unpack` [<options>] <formula>
+ `unpack` [<options>] <formula> [<formula ...>]
Unpack the source files for <formula> into subdirectories of the current
working directory... | true |
Other | Homebrew | brew | cf654da251fff2d6487abaf6d4736161544a6772.json | dev-cmd: indicate multiple named args in usage banner | Library/Homebrew/dev-cmd/update-python-resources.rb | @@ -13,7 +13,7 @@ module Homebrew
def update_python_resources_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `update-python-resources` [<options>] <formula>
+ `update-python-resources` [<options>] <formula> [<formula> ...]
Update versions for PyPI resource blocks in <for... | true |
Other | Homebrew | brew | 332372469fd38cec8bedebaf49c1cd7fce0de4a3.json | cmd: indicate multiple named args in usage banner | Library/Homebrew/cmd/--cache.rb | @@ -16,7 +16,7 @@ module Homebrew
def __cache_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `--cache` [<options>] [<formula>|<cask>]
+ `--cache` [<options>] [<formula>|<cask>] [<formula>|<cask> ...]
Display Homebrew's download cache. See also `HOMEBREW_CACHE`.
| true |
Other | Homebrew | brew | 332372469fd38cec8bedebaf49c1cd7fce0de4a3.json | cmd: indicate multiple named args in usage banner | Library/Homebrew/cmd/--caskroom.rb | @@ -10,7 +10,7 @@ module Homebrew
def __caskroom_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `--caskroom` [<cask>]
+ `--caskroom` [<cask>] [<cask> ...]
Display Homebrew's Caskroom path.
| true |
Other | Homebrew | brew | 332372469fd38cec8bedebaf49c1cd7fce0de4a3.json | cmd: indicate multiple named args in usage banner | Library/Homebrew/cmd/--cellar.rb | @@ -9,7 +9,7 @@ module Homebrew
def __cellar_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `--cellar` [<formula>]
+ `--cellar` [<formula>] [<formula> ...]
Display Homebrew's Cellar path. *Default:* `$(brew --prefix)/Cellar`, or if
that directory doesn't exist, ... | true |
Other | Homebrew | brew | 332372469fd38cec8bedebaf49c1cd7fce0de4a3.json | cmd: indicate multiple named args in usage banner | Library/Homebrew/cmd/--env.rb | @@ -15,7 +15,7 @@ module Homebrew
def __env_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `--env` [<options>] [<formula>]
+ `--env` [<options>] [<formula>] [<formula> ...]
Summarise Homebrew's build environment as a plain list.
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.