support/ruby/collins-shell/lib/collins_shell/util/log_printer.rb
def format_logs _logs
      have_multi_row = streaming? # either false (default), or true based on streaming
      logs_to_render = if not _logs.empty? then _logs else logs end
      logs_formatted = logs_to_render.map do |log|
        entry = format_log_entry log
        have_multi_row = true unless entry.find_index{|e| e.to_s.include?("\n")}.nil?
        entry
      end
      [have_multi_row, logs_formatted]
    end
# Format logs appropriately for table layout
Format logs appropriately for table layout
Format logs appropriately for table layout
def format_logs _logs
      have_multi_row = streaming? 
      logs_to_render = if not _logs.empty? then _logs else logs end
      logs_formatted = logs_to_render.map do |log|
        entry = format_log_entry log
        have_multi_row = true unless entry.find_index{|e| e.to_s.include?("\n")}.nil?
        entry
      end
      [have_multi_row, logs_formatted]
    end
def format_logs _logs have_multi_row = streaming? logs_to_render = if not _logs . empty? then _logs else logs end logs_formatted = logs_to_render . map do | log | entry = format_log_entry log have_multi_row = true unless entry . find_index { | e | e . to_s . include? ( "\n" ) } . nil? entry end [ have_multi_row , logs_formatted ] end
Format logs appropriately for table layout
Format logs appropriately for table layout
# either false (default), or true based on streaming
_logs