Skip to content

Commit

Permalink
conditionally colorize outdated pinned with blue
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Kozjak <[email protected]>
  • Loading branch information
mkozjak authored and ondrejfuhrer committed Oct 13, 2023
1 parent 54eb3f9 commit 29fb4d7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/extend/formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,13 @@ def output_print_pin_table(pinns)

def formatting_for_app(state_info, app, options)
if state_info[app] == "pinned"
color = "cyan"
if ENV['HOMEBREW_CASK_UPGRADE_PINNED_OUTDATED_COLORIZE']
if app[:current_full] != app[:version_full]
color = "blue"
end
else
color = "cyan"
end
result = "[ PINNED ]"
elsif state_info[app][0, 6] == "forced"
color = "yellow"
Expand Down

0 comments on commit 29fb4d7

Please sign in to comment.