class Thor::Shell::TablePrinter

def truncate(string)

def truncate(string)
  return string unless @truncate
  chars = string.chars.to_a
  if chars.length <= @truncate
    chars.join
  else
    chars[0, @truncate - 3 - @indent].join + "..."
  end
end