brew-deps: improved --tree formatting

Use proper BOX DRAWINGS LIGHT VERTICAL unicode character.

Closes Homebrew/homebrew#46158.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
Alexis Hildebrandt 2015-11-19 10:05:23 +01:00 committed by Baptiste Fontaine
parent 6f5307fbd9
commit a9b380539c

View File

@ -82,7 +82,7 @@ module Homebrew
max = deps.length - 1
deps.each_with_index do |dep, i|
chr = i == max ? "└──" : "├──"
prefix_ext = i == max ? " " : "| "
prefix_ext = i == max ? " " : " "
puts prefix + "#{chr} #{dep.name}"
recursive_deps_tree(Formulary.factory(dep.name), prefix + prefix_ext)
end