class Thor::Shell::Basic

def truncate(string, width)

def truncate(string, width)
  if string.length <= width
    string
  else
    ( string[0, width-3] || "" ) + "..."
  end
end