brew bump: do not call repology by default
This commit is contained in:
parent
fd62a158f2
commit
f4c263f565
@ -34,6 +34,8 @@ module Homebrew
|
|||||||
description: "Check only formulae."
|
description: "Check only formulae."
|
||||||
switch "--cask", "--casks",
|
switch "--cask", "--casks",
|
||||||
description: "Check only casks."
|
description: "Check only casks."
|
||||||
|
switch "--eval-all",
|
||||||
|
description: "Evaluate all formulae and casks."
|
||||||
flag "--tap=",
|
flag "--tap=",
|
||||||
description: "Check formulae and casks within the given tap, specified as <user>`/`<repo>."
|
description: "Check formulae and casks within the given tap, specified as <user>`/`<repo>."
|
||||||
switch "--installed",
|
switch "--installed",
|
||||||
@ -76,6 +78,10 @@ module Homebrew
|
|||||||
formulae + casks
|
formulae + casks
|
||||||
elsif args.named.present?
|
elsif args.named.present?
|
||||||
args.named.to_formulae_and_casks_with_taps
|
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
|
end
|
||||||
|
|
||||||
formulae_and_casks = formulae_and_casks&.sort_by do |formula_or_cask|
|
formulae_and_casks = formulae_and_casks&.sort_by do |formula_or_cask|
|
||||||
|
|||||||
@ -20,6 +20,9 @@ class Homebrew::DevCmd::Bump::Args < Homebrew::CLI::Args
|
|||||||
sig { returns(T::Boolean) }
|
sig { returns(T::Boolean) }
|
||||||
def formula?; end
|
def formula?; end
|
||||||
|
|
||||||
|
sig { returns(T::Boolean) }
|
||||||
|
def eval_all?; end
|
||||||
|
|
||||||
sig { returns(T::Boolean) }
|
sig { returns(T::Boolean) }
|
||||||
def formulae?; end
|
def formulae?; end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user