def do_exit(self, args): """\ == Usage == exit == Description == Exists shell by /exit/ command. == Examples == exit """ self.onExit.fire() StateMachine.exiting() # @UndefinedVariable sys.exit(0)
def do_EOF(self, line): """\ == Usage == Ctrl+D == Description == Exists shell by /Ctrl+D/ sequence. == Examples == Ctrl+D """ self.onExit.fire() StateMachine.exiting() # @UndefinedVariable return True