Sha256: 015856a82383612337345b51fb81a80425a44d217a5344bc8ddbee9795a8220f
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 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| return range.arrow.color(color).dark if range.include?(priority) end end def print_file_info(o, _color) o.files.each do |f| echo "-> #{f.filename}:#{f.line_no}".color(_color) end echo separator end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inch-0.4.7 | lib/inch/cli/command/output/base.rb |