diff options
| author | Mike McQuaid | 2016-08-14 09:44:07 +0100 |
|---|---|---|
| committer | GitHub | 2016-08-14 09:44:07 +0100 |
| commit | c008797ffebde5fdcc92ecb9dba5564240683783 (patch) | |
| tree | 788d619b4c60e917eeef4f1f7bebf6cc769c3bd5 /Library/Homebrew/utils.rb | |
| parent | 5b9fd5c82ccb9233013672168d48af73ae6b9b1f (diff) | |
| parent | da52fb67f0076e6be6be61d396d4da16cb3db1b1 (diff) | |
| download | brew-c008797ffebde5fdcc92ecb9dba5564240683783.tar.bz2 | |
Merge pull request #677 from sjackman/print-dependencies
install_dependencies: Do not truncate dependencies
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index f78fbfcb7..71f03c6d5 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -88,8 +88,10 @@ def ohai(title, *sput) puts sput end -def oh1(title) - title = Tty.truncate(title) if $stdout.tty? && !ARGV.verbose? +def oh1(title, options = {}) + if $stdout.tty? && !ARGV.verbose? && options.fetch(:truncate, :auto) == :auto + title = Tty.truncate(title) + end puts "#{Tty.green}==>#{Tty.white} #{title}#{Tty.reset}" end |
