function Registry.FlushAutoExecBuffer(m)for M,C in ipairs(m.AutoExecBuffer)do for M,C in ipairs(C)do m.Cmdr.Dispatcher:EvaluateAndRun(C)end end m.AutoExecBuffer={}end return function(m)Registry.Cmdr=m return Registry end
--- Runs all pending auto exec commands in Registry.AutoExecBuffer
function Registry:FlushAutoExecBuffer()
	for _, commandGroup in ipairs(self.AutoExecBuffer) do
		for _, command in ipairs(commandGroup) do
			self.Cmdr.Dispatcher:EvaluateAndRun(command)
		end
	end

	self.AutoExecBuffer = {}
end

return function(cmdr)
	Registry.Cmdr = cmdr

	return Registry
end
