class Byebug::QuitCommand


Exit from byebug.

def self.description

def self.description
  <<-DESCRIPTION
    q[uit][!| unconditionally]
    #{short_description}
    Normally we prompt before exiting. However, if the parameter
    "unconditionally" is given or command is suffixed with "!", we exit
    without asking further questions.
  DESCRIPTION
end

def self.regexp

def self.regexp
  /^\s* q(?:uit)? \s* (?:(!|\s+unconditionally))? \s*$/x
end

def self.short_description

def self.short_description
  "Exits byebug"
end

def execute

def execute
  return unless @match[1] || confirm(pr("quit.confirmations.really"))
  processor.interface.autosave
  processor.interface.close
  Process.exit!
end