Give a fresh 🍺 after hard work of brew install
- Name of the brewed formula in "Summary" heading. - At the beginning of the summary line a 🍺 is given out (but only on Lion or above). This acts as a nice visual marker for the end of a brew-ing process. - When brewing a dependency, the name is highlighted in green. - `oh1` is bold, too (like ohai). Closes Homebrew/homebrew#16020. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
5c799ef8c8
commit
bc3c07d197
@ -114,7 +114,7 @@ class FormulaInstaller
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
oh1 "Installing #{f}" if show_header
|
oh1 "Installing #{Tty.green}#{f}#{Tty.reset}" if show_header
|
||||||
|
|
||||||
if install_bottle
|
if install_bottle
|
||||||
pour
|
pour
|
||||||
@ -133,7 +133,7 @@ class FormulaInstaller
|
|||||||
fi = FormulaInstaller.new(dep, dep_tab)
|
fi = FormulaInstaller.new(dep, dep_tab)
|
||||||
fi.ignore_deps = true
|
fi.ignore_deps = true
|
||||||
fi.show_header = false
|
fi.show_header = false
|
||||||
oh1 "Installing #{f} dependency: #{dep}"
|
oh1 "Installing #{f} dependency: #{Tty.green}#{dep}#{Tty.reset}"
|
||||||
outdated_keg.unlink if outdated_keg
|
outdated_keg.unlink if outdated_keg
|
||||||
fi.install
|
fi.install
|
||||||
fi.caveats
|
fi.caveats
|
||||||
@ -173,7 +173,8 @@ class FormulaInstaller
|
|||||||
install_plist
|
install_plist
|
||||||
fix_install_names
|
fix_install_names
|
||||||
|
|
||||||
ohai "Summary" if ARGV.verbose? or show_summary_heading
|
ohai "Summary - #{f.name}" if ARGV.verbose? or show_summary_heading
|
||||||
|
print "🍺 " if MacOS.version >= :lion
|
||||||
print "#{f.prefix}: #{f.prefix.abv}"
|
print "#{f.prefix}: #{f.prefix.abv}"
|
||||||
print ", built in #{pretty_duration build_time}" if build_time
|
print ", built in #{pretty_duration build_time}" if build_time
|
||||||
puts
|
puts
|
||||||
|
@ -42,7 +42,7 @@ end
|
|||||||
|
|
||||||
def oh1 title
|
def oh1 title
|
||||||
title = title.to_s[0, Tty.width - 4] if $stdout.tty? unless ARGV.verbose?
|
title = title.to_s[0, Tty.width - 4] if $stdout.tty? unless ARGV.verbose?
|
||||||
puts "#{Tty.green}==> #{Tty.reset}#{title}"
|
puts "#{Tty.green}==>#{Tty.white} #{title}#{Tty.reset}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def opoo warning
|
def opoo warning
|
||||||
|
Loading…
x
Reference in New Issue
Block a user