Merge pull request #15160 from razvanazamfirei/greedy
Add HOMEBREW_GREEDY option
This commit is contained in:
commit
461fc3ec81
@ -42,6 +42,8 @@ module Cask
|
||||
|
||||
quarantine = true if quarantine.nil?
|
||||
|
||||
greedy = true if Homebrew::EnvConfig.upgrade_greedy?
|
||||
|
||||
outdated_casks = if casks.empty?
|
||||
Caskroom.casks(config: Config.from_args(args)).select do |cask|
|
||||
cask.outdated?(greedy: greedy, greedy_latest: greedy_latest,
|
||||
|
||||
@ -344,6 +344,10 @@ module Homebrew
|
||||
description: "If set, use Pry for the `brew irb` command.",
|
||||
boolean: true,
|
||||
},
|
||||
HOMEBREW_UPGRADE_GREEDY: {
|
||||
description: "If set, pass `--greedy` to all cask upgrade commands.",
|
||||
boolean: true,
|
||||
},
|
||||
HOMEBREW_SIMULATE_MACOS_ON_LINUX: {
|
||||
description: "If set, running Homebrew on Linux will simulate certain macOS code paths. This is useful " \
|
||||
"when auditing macOS formulae while on Linux.",
|
||||
|
||||
@ -229,6 +229,9 @@ module Homebrew::EnvConfig
|
||||
sig { returns(T::Boolean) }
|
||||
def self.update_to_tag?; end
|
||||
|
||||
sig { returns(T::Boolean) }
|
||||
def self.upgrade_greedy?; end
|
||||
|
||||
sig { returns(T::Boolean) }
|
||||
def self.verbose?; end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user