Sha256: 4081a11eeea0a9db2a66ae65bc4ebb46a3db65cd3491846605d581c50c51203d
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
require 'optparse' module Inch module CLI module Command # The classes in the Command::Output namespace act as presenter # objects to the classes in the Command namespace. # # They are given all the objects and data they are supposed # to display to the user. They do not filter the received data. # # @see Inch::CLI::Command::Suggest # @see Inch::CLI::Command::Output::Suggest module Output # Abstract base class for CLI output # # @abstract class Base include TraceHelper def priority_arrow(priority, color = :white) Evaluation::PriorityRange.all.each do |range| if range.include?(priority) 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
inch-0.3.0.rc2 | lib/inch/cli/command/output/base.rb |
inch-0.3.0.rc1 | lib/inch/cli/command/output/base.rb |