brew bump: do not call repology by default

This commit is contained in:
Thierry Moisan 2024-07-14 15:11:39 -04:00
parent fd62a158f2
commit f4c263f565
No known key found for this signature in database
GPG Key ID: 37158791CE7B7FB0
2 changed files with 9 additions and 0 deletions

View File

@ -34,6 +34,8 @@ module Homebrew
description: "Check only formulae."
switch "--cask", "--casks",
description: "Check only casks."
switch "--eval-all",
description: "Evaluate all formulae and casks."
flag "--tap=",
description: "Check formulae and casks within the given tap, specified as <user>`/`<repo>."
switch "--installed",
@ -76,6 +78,10 @@ module Homebrew
formulae + casks
elsif args.named.present?
args.named.to_formulae_and_casks_with_taps
else
formulae = args.cask? ? [] : Formula.all(eval_all: args.eval_all?)
casks = args.formula? ? [] : Cask::Cask.all(eval_all: args.eval_all?)
formulae + casks
end
formulae_and_casks = formulae_and_casks&.sort_by do |formula_or_cask|

View File

@ -20,6 +20,9 @@ class Homebrew::DevCmd::Bump::Args < Homebrew::CLI::Args
sig { returns(T::Boolean) }
def formula?; end
sig { returns(T::Boolean) }
def eval_all?; end
sig { returns(T::Boolean) }
def formulae?; end