mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
greedy outdated
This commit is contained in:
parent
53e8d4024f
commit
23dd14d1c4
@ -48,6 +48,8 @@ module Homebrew
|
|||||||
|
|
||||||
sig { override.void }
|
sig { override.void }
|
||||||
def run
|
def run
|
||||||
|
@greedy = Homebrew::EnvConfig.upgrade_greedy? || args.greedy?
|
||||||
|
|
||||||
case json_version(args.json)
|
case json_version(args.json)
|
||||||
when :v1
|
when :v1
|
||||||
odie "`brew outdated --json=v1` is no longer supported. Use brew outdated --json=v2 instead."
|
odie "`brew outdated --json=v1` is no longer supported. Use brew outdated --json=v2 instead."
|
||||||
@ -118,7 +120,7 @@ module Homebrew
|
|||||||
else
|
else
|
||||||
c = formula_or_cask
|
c = formula_or_cask
|
||||||
|
|
||||||
puts c.outdated_info(args.greedy?, verbose?, false, args.greedy_latest?, args.greedy_auto_updates?)
|
puts c.outdated_info(@greedy, verbose?, false, args.greedy_latest?, args.greedy_auto_updates?)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -143,7 +145,7 @@ module Homebrew
|
|||||||
else
|
else
|
||||||
c = formula_or_cask
|
c = formula_or_cask
|
||||||
|
|
||||||
c.outdated_info(args.greedy?, verbose?, true, args.greedy_latest?, args.greedy_auto_updates?)
|
c.outdated_info(@greedy, verbose?, true, args.greedy_latest?, args.greedy_auto_updates?)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -193,7 +195,7 @@ module Homebrew
|
|||||||
if formula_or_cask.is_a?(Formula)
|
if formula_or_cask.is_a?(Formula)
|
||||||
formula_or_cask.outdated?(fetch_head: args.fetch_HEAD?)
|
formula_or_cask.outdated?(fetch_head: args.fetch_HEAD?)
|
||||||
else
|
else
|
||||||
formula_or_cask.outdated?(greedy: args.greedy?, greedy_latest: args.greedy_latest?,
|
formula_or_cask.outdated?(greedy: @greedy, greedy_latest: args.greedy_latest?,
|
||||||
greedy_auto_updates: args.greedy_auto_updates?)
|
greedy_auto_updates: args.greedy_auto_updates?)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -436,7 +436,7 @@ module Homebrew
|
|||||||
boolean: true,
|
boolean: true,
|
||||||
},
|
},
|
||||||
HOMEBREW_UPGRADE_GREEDY: {
|
HOMEBREW_UPGRADE_GREEDY: {
|
||||||
description: "If set, pass `--greedy` to all cask upgrade commands.",
|
description: "If set, pass `--greedy` to all cask upgrade commands and `brew outdated`.",
|
||||||
boolean: true,
|
boolean: true,
|
||||||
},
|
},
|
||||||
HOMEBREW_VERBOSE: {
|
HOMEBREW_VERBOSE: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user