class Thor::Shell::Basic

def say_error(message = "", color = nil, force_new_line = (message.to_s !~ /( |\t)\Z/))


say_error("error: something went wrong")
==== Example

are passed straight to puts (behavior got from Highline).
or tab character, a new line is not appended (print + flush). Otherwise
Say (print) an error to the user. If the sentence ends with a whitespace
def say_error(message = "", color = nil, force_new_line = (message.to_s !~ /( |\t)\Z/))
  return if quiet?
  buffer = prepare_message(message, *color)
  buffer << "\n" if force_new_line && !message.to_s.end_with?("\n")
  stderr.print(buffer)
  stderr.flush
end