lib/inch/cli/command/output/base.rb in inch-0.2.3 vs lib/inch/cli/command/output/base.rb in inch-0.3.0.rc1

- old
+ new

@@ -16,24 +16,22 @@ # # @abstract class Base include TraceHelper - PRIORITY_MAP = { - (4..99) => "\u2191", # north - (2...4) => "\u2197", # north-east - (0..1) => "\u2192", # east - (-2..-1) => "\u2198", # south-east - (-99..-3) => "\u2193", # south-east - } - PRIORITY_ARROWS = PRIORITY_MAP.values - def priority_arrow(priority, color = :white) - PRIORITY_MAP.each do |range, str| + Evaluation::PriorityRange.all.each do |range| if range.include?(priority) - return str.color(color).dark + return range.arrow.color(color).dark end end + end + + def print_file_info(o, _color) + o.files.each do |f| + echo "-> #{f[0]}:#{f[1]}".color(_color) + end + echo separator end end end end end