def write_input(message, default=nil, validator=nil, not_valid_message=nil)
      require 'highline/import'
      response =  ask(highline_quest(message)) do |q|
        q.default = default if default
        q.validate = /\.(.*)/ if validator
        q.responses[:not_valid] = highline_warn(not_valid_message) if not_valid_message
      end
      return response
    end
def write_input(message, default=nil, validator=nil, not_valid_message=nil)
      require 'highline/import'
      response =  ask(highline_quest(message)) do |q|
        q.default = default if default
        q.validate = /\.(.*)/ if validator
        q.responses[:not_valid] = highline_warn(not_valid_message) if not_valid_message
      end
      return response
    end
Ask to write some input with validation