class Thor::Shell::TablePrinter

def print(array)

def print(array)
  return if array.empty?
  prepare(array)
  print_border_separator if options[:borders]
  array.each do |row|
    if options[:borders] && row == BORDER_SEPARATOR
      print_border_separator
      next
    end
    sentence = "".dup
    row.each_with_index do |column, index|
      sentence << format_cell(column, row.size, index)
    end
    sentence = truncate(sentence)
    sentence << "|" if options[:borders]
    stdout.puts indentation + sentence
  end
  print_border_separator if options[:borders]
end